Asynchronous HTTP Client/Server for asyncio and Python. AIOHTTP supports both client and server side of HTTP protocol. A long awaited new feature is tracing client request life cycle to figure out when and why client request spends a time waiting for connection establishment, getting server response headers etc. Now it is possible by registering special signal handlers on every request processing stage. The main change is dropping yield from support and using async/await everywhere. Farewell, Python 3.4. You often want to send some sort of data in the URL’s query string. If you were constructing the URL by hand, this data would be given as key/value pairs in the URL after a question mark, e.g. httpbin.org/get?key=val. Requests allows you to provide these arguments as a dict, using the params keyword argument. aiohttp internally performs URL canonicalization before sending request.
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
- For speeding up DNS resolving by client API you may install aiodns as well
- No need to type separate commands anymore!
- Optional cchardet as faster replacement for chardet
License
Apache License V2.0Follow AIOHTTP
User Reviews
-
nice. perfect for developing my web scraping project.