Python3.4 asyncio (tulip) http framework

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

Also: the WSGI standard is not controlled by async, is there any work to update the specifications?

+4
source share
2 answers

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

It has almost the same characteristics as a waitress (at least with ab -ka small application). It can become faster than a waitress if you use many ready-made third-party libraries for asynchronous access.

The server allows you to use coroutines in your application, but since most web frameworks are not ready for use, you must use your own code. (it works with the framework, but you cannot use coroutines in your application ...)

+2
source

As for the WSGI part of your question, they are in the process of integration: http://uwsgi-docs.readthedocs.org/en/latest/asyncio.html

+2
source

Source: https://habr.com/ru/post/1537357/


All Articles