Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lightweight asyncio web server

As far as I can tell, aiohttp is currently the reference for web servers built on asyncio. While it's an impressive piece of work, it doesn't quite match my particular (peculiar) taste: In addition to being a web server, it's also a framework for web applications (with routing and everything), plus the API is fairly class-heavy.

I'd prefer something that is just an HTTP server, providing a minimal interface (basically an async WSGI equivalent). Does such a thing exist already?

like image 296
AnC Avatar asked Jun 19 '15 14:06

AnC


1 Answers

Well, you may try low-level aiohttp.server instead of aiohttp.web.

It has no routes, middlewares and other high-level stuff. But you have to work with aiohttp low-level abstractions like message, payload and response.

like image 137
Andrew Svetlov Avatar answered Sep 30 '22 05:09

Andrew Svetlov