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

Require python 2.7, 3.3+

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

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

You like it ? => https://www.gittip.com/gawel/

Usage

Install the software:

$ pip install aiowsgi

Launch the server:

$ aiowsgi yourmodule:application
$ aiowsgi -h

You can also use a paste factory

[server:main]
use = egg:aiowsgi

Notice that all options will not work. aiowsgi just use waitress with a custom server factory but not all adjustments are implemented.

API

aiowsgi.serve(application, **kw)[source]

Serve a wsgi application

aiowsgi.create_server(application, ssl=None, **adj)[source]

Create a wsgi server:

Then use srv.run() or loop.run_forever()

class aiowsgi.thread.WSGIServer(app, host='127.0.0.1', port=None)[source]

Stopable WSGI server running in a thread (not main thread). Usefull for functionnal testing.

Usage:

server.url will contain the url to request

Indices and tables