Aiohttp
lastmod 2023-09-21created 2020-03-1829 edits
Asynchronous HTTP Client/Server for asyncio and Python.
Key Features
- Supports both Client and HTTP Server.
- Supports both Server WebSockets and Client WebSockets out-of-the-box without the Callback Hell.
- Web-server has Middlewares, Signals and plugable routing.
Categories
aiohttp extensions
- aiohttp-session provides sessions for aiohttp.web.
- aiohttp-debugtoolbar is a library for debug toolbar support for aiohttp.web.
- aiohttp-security auth and permissions for aiohttp.web.
- aiohttp-devtools provides development tools for aiohttp.web applications.
- aiohttp-cors CORS support for aiohttp.
- aiohttp-sse Server-sent events support for aiohttp.
- pytest-aiohttp pytest plugin for aiohttp support.
- aiohttp-mako Mako template renderer for aiohttp.web.
- aiohttp-jinja2 Jinja2 template renderer for aiohttp.web.
- aiozipkin distributed tracing instrumentation for aiohttp client and server.
- aiohttp-remotes A set of useful tools for aiohttp.web server
Database drivers
Other tools
- aiodocker Python Docker API client based on asyncio and aiohttp.
- aiobotocore asyncio support for botocore library using aiohttp.
Approved third-party libraries
The libraries are not part of aio-libs but they are proven to be very well written and highly recommended for usage.
- uvloop Ultra fast implementation of asyncio event loop on top of libuv. We are highly recommending to use it instead of standard asyncio.
Others
Examples
- Vue Router#HTML5 History Mode - Deployment caveats when using vue-router as the frontend and aiohttp as the backend.
See also
Favorite site
Documentation
Guide
- Asynchronous HTTP requests with aiohttp
- Making 1 million requests with python-aiohttp
- [Recommended] Running an HTTP & GRPC Python Server Concurrently on AWS Elastic Beanstalk 1 (aiohttp, grpc)
References
-
Running_an_HTTP_GRPC_Python_Server_Concurrently_on_AWS_Elastic_Beanstalk.pdf ↩
Pages that link here