aiowsgi - minimalist wsgi server using asyncio

https://travis-ci.org/gawel/aiowsgi.png?branch=master https://coveralls.io/repos/gawel/aiowsgi/badge.png?branch=master https://pypip.in/v/aiowsgi/badge.png https://pypip.in/d/aiowsgi/badge.png

Source: https://github.com/gawel/aiowsgi/

Docs: https://aiowsgi.readthedocs.org/

Usage

class aiowsgi.WSGIProtocol[source]
classmethod factory(application, **adj)[source]

Create a TCP server:

>>> loop = asyncio.get_event_loop()
>>> args = WSGIProtocol.factory(application,
...                             host='127.0.0.1',
...                             port=8000)
>>> task = asyncio.async(loop.create_server(*args))
parser_class

alias of HTTPRequestParser

classmethod unix_factory(application, **adj)[source]

Create a UNIX server:

>>> loop = asyncio.get_event_loop()
>>> args = WSGIProtocol.unix_factory(application,
...                                  unix_socket='/tmp/wsgi')
>>> task = asyncio.async(loop.create_unix_server(*args))

Indices and tables

Table Of Contents

This Page