Kr0e
Kr0e

Reputation: 2249

Python3.4 asyncio(tulip) http framework

I was wondering if there is already some http-server-framework using the new asyncio features. I know about aiohttp, but it's really just a simple server.

In addition: The WSGI standard is not async-driven, is there any work happening for updating the specs ?

Upvotes: 4

Views: 1137

Answers (2)

Josh Russo
Josh Russo

Reputation: 3241

In regards to the WSGI part of your question, the two are in the process of being integrated: http://uwsgi-docs.readthedocs.org/en/latest/asyncio.html

Upvotes: 2

gawel
gawel

Reputation: 2048

I wrote an implementation based on the waitress web server: https://github.com/gawel/aiowsgi

It has pretty much the same performances than waitress (at least with ab -k on a small application) It may become faster than waitress if you use a lot of asyncio ready third party libraries.

The server allow you to use coroutines in your application but since most web frameworks are not asyncio ready you have to use your own code. (it work with a framework but you'll not be able to use coroutines in your application...)

Upvotes: 2

Related Questions