Metadata-Version: 1.1
Name: thor
Version: 0.6.9
Summary: Simple Event-Driven IO for Python
Home-page: http://github.com/mnot/thor/
Author: Mark Nottingham
Author-email: mnot@mnot.net
License: MIT
Download-URL: http://github.com/mnot/thor/tarball/thor-0.6.9
Description: Thor - Easy Evented Intermediation
        ==================================
        
        .. image:: https://secure.travis-ci.org/mnot/thor.png?branch=master
           :alt: build status
           :target: http://travis-ci.org/mnot/thor
        .. image:: https://coveralls.io/repos/mnot/thor/badge.svg
           :alt: coverage status
           :target: https://coveralls.io/r/mnot/thor
        
        About Thor
        ----------
        
        Thor is a Python library for evented IO.
        
        There are many such libraries for Python already available. Thor focuses
        on making it easy to build high-performance HTTP intermediaries like
        proxies, load balancers, content transformation engines and service
        aggregators. Of course, you can use it just as a client or server too.
        
        It aims to be as fast as possible, to implement the protocols correctly,
        and to be simple. You can help meet these goals by contributing issues,
        patches and tests.
        
        Thor’s EventEmitter API is influenced by^H^H^H copied from NodeJS; if
        you’re familiar with Node, it shouldn’t be too hard to use Thor.
        However, Thor is nothing like Twisted; this is considered a feature.
        
        Currently, Thor has an event loop as well as TCP, UDP and HTTP APIs
        (client and server). New APIs (e.g., DNS) and capabilities should be
        arriving soon, along with a framework for intermediation.
        
        Requirements
        ------------
        
        Thor just needs Python 3.5; see `http://python.org/`_.
        
        Currently, it will run on most Posix platforms; specifically, those that
        offer one of poll, epoll or kqueue.
        
        Installation
        ------------
        
        If you have setuptools, you can install from the repository:
        
            easy\_install thor
        
        or using pip:
        
            pip install thor
        
        Otherwise, download a tarball and install using:
        
            python setup.py install
        
        Using Thor
        ----------
        
        The `documentation`_ is a good starting point; see also the docstrings
        for the various modules, as well as the tests, to give an idea of how to
        use Thor.
        
        For example, a very simple HTTP server looks like this::
        
            import thor
            def test_handler(exch):
                @thor.events.on(exch)
                def request_start(*args):
                    exch.response_start(200, "OK", [('Content-Type', 'text/plain')])
                    exch.response_body('Hello, world!')
                    exch.response_done([])
        
            if __name__ == "__main__":
                demo_server = thor.HttpServer('127.0.0.1', 8000)
                demo_server.on('exchange', test_handler)
                thor.run()
        
        Support and Contributions
        -------------------------
        
        See `http://github.com/mnot/thor/`_ to give feedback, view and report
        `issues`_, and contribute code.
        
        All helpful input is welcome, particularly code contributions via a Github
        pull request, and test cases are the cherry on top.
        
        Why Thor?
        ---------
        
        Thor is not only “a hammer-wielding god associated with thunder,
        lightning, storms, oak trees, strength, destruction, fertility, healing,
        and the protection of mankind”, he’s also my Norwegian Forest Cat.
        
        Thor (the software program) grew out of nbhttp, which itself came
        from earlier work on evented Python in `redbot`_ and tarawa.
        
        Thor (the cat) now rules our house with a firm but benevolent paw. He
        gets sick if we give him any milk, though.
        
        .. figure:: http://www.mnot.net/lib/thor.jpg
           :align: center
           :alt: Thor, the cat
        
           Thor, the cat
        
        
        .. _`http://python.org/`: http://python.org/
        .. _documentation: https://github.com/mnot/thor/tree/master/doc
        .. _`http://github.com/mnot/thor/`: http://github.com/mnot/thor/
        .. _issues: https://github.com/mnot/thor/issues
        .. _redbot: http://redbot.org/
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.5
Classifier: Operating System :: POSIX
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: Proxy Servers
Classifier: Topic :: Internet :: WWW/HTTP :: HTTP Servers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Provides: thor
