Metadata-Version: 1.1
Name: txasgiresource
Version: 2.0.1
Summary: ASGI implemented as a Twisted resource
Home-page: https://github.com/JohnDoee/txasgiresource
Author: Anders Jensen
Author-email: johndoee@tidalstream.org
License: MIT
Description-Content-Type: UNKNOWN
Description: txasgiresource
        ==============
        
        txasgiresource is `ASGI <http://channels.readthedocs.io/en/latest/asgi.html>`_ implemented as a Twisted Web Resource,
        very similar to `WSGIResource <http://twistedmatrix.com/documents/current/api/twisted.web.wsgi.WSGIResource.html>`_.
        
        This is inspired by `Daphne <https://github.com/django/daphne/>`_ but somewhat implemented from specs.
        
        It can also run as a daemon.
        
        The code is available on `GitHub <https://github.com/JohnDoee/txasgiresource>`_
        
        Usage
        -----
        
        As Twisted Resource
        ~~~~~~~~~~~~~~~~~~~
        .. code-block:: python
        
            from twisted.web import server
        
            from yourdjangoproject.routing import application
        
            resource = ASGIResource(application)
            site = server.Site(resource)
        
            # If we are done with the resource, make sure to stop it.
        
            yield resource.stop()
        
        As ASGI Protocol server
        ~~~~~~~~~~~~~~~~~~~~~~~
        ::
        
            twistd -n txasgi -a yourdjangoproject.routing:application
        
        As ASGI Protocol server on a different port and ip
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        ::
        
            twistd -n txasgi -a yourdjangoproject.asgi:channel_layer -d tcp:5566:interface=0.0.0.0
        
        Status
        ------
        
        Master branch
        ~~~~~~~~~~~~~~
        .. image:: https://coveralls.io/repos/github/JohnDoee/txasgiresource/badge.svg?branch=master
           :target: https://coveralls.io/github/JohnDoee/txasgiresource?branch=master
        .. image:: https://travis-ci.org/JohnDoee/txasgiresource.svg?branch=master
           :target: https://travis-ci.org/JohnDoee/txasgiresource
        
        
        Develop branch
        ~~~~~~~~~~~~~~
        .. image:: https://coveralls.io/repos/github/JohnDoee/txasgiresource/badge.svg?branch=develop
           :target: https://coveralls.io/github/JohnDoee/txasgiresource?branch=develop
        .. image:: https://travis-ci.org/JohnDoee/txasgiresource.svg?branch=develop
           :target: https://travis-ci.org/JohnDoee/txasgiresource
        
        License
        -------
        
        MIT, see LICENSE
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Web Environment
Classifier: Framework :: Twisted
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Python Modules
