Contents

aiohttp 3.13.3

0

Async http client/server framework (asyncio)

The aiohttp Python package is an asynchronous HTTP client/server framework that leverages Python's asyncio library. It supports both client and server sides of the HTTP protocol, as well as client and server websockets. The package provides a web server with middleware support and pluggable routing. This makes it a powerful tool for building efficient, non-blocking web applications in Python. It is highly recommended for projects where concurrent network or HTTP requests are a core requirement, and it is often used in web scraping, API consumption, and web development.

Stars: 16263, Watchers: 16263, Forks: 2193, Open Issues: 278

The aio-libs/aiohttp repo was created 12 years ago and the last code push was 8 hours ago.
The project is extremely popular with a mindblowing 16263 github stars!

How to Install aiohttp

You can install aiohttp using pip

pip install aiohttp

or add it to a project with poetry

poetry add aiohttp

Package Details

Author
None
License
Apache-2.0 AND MIT
Homepage
None
PyPi:
https://pypi.org/project/aiohttp/
GitHub Repo:
https://github.com/aio-libs/aiohttp

Classifiers

  • Internet/WWW/HTTP
No  aiohttp  pypi packages just yet.

Errors

A list of common aiohttp errors.

Code Examples

Here are some aiohttp code examples and snippets.

GitHub Issues

The aiohttp package has 278 open issues on GitHub

  • Bump setuptools from 80.10.1 to 80.10.2
  • Bump multidict from 6.7.0 to 6.7.1
  • Bump rich from 14.2.0 to 14.3.1
  • Fix flaky import time test for Python 3.12+
  • Allow JSONEncoder to return bytes directly
  • Allow dumps: JSONEncoder callable to directly return bytes
  • AttributeError: 'NoneType' object has no attribute 'getaddrinfo'
  • Bump packaging from 25.0 to 26.0
  • Add rate limiting middleware example
  • Allow decompression to continue after exceeding max_length
  • Bump tomli from 2.3.0 to 2.4.0
  • Bump aiodns from 3.6.1 to 4.0.0
  • Bump build from 1.3.0 to 1.4.0
  • Add benchmark for blocking time reading chunks
  • Refactor tests to use create_autospec() for more robust mocking

See more issues on GitHub

Related Packages & Articles

starlette 0.52.1

Starlette is a lightweight ASGI (Asynchronous Server Gateway Interface) framework/toolkit, ideal for building asynchronous web services in Python. It is production-ready and offers a range of features including HTTP web framework, WebSocket support, in-process background tasks, startup and shutdown events, and a test client built on HTTPX. Starlette also supports CORS, GZIP, static files, streaming responses, and session and cookie support. It is compatible with asyncio and trio backends and boasts great overall performance against independent benchmarks. The package can be used as a complete framework or as an ASGI toolkit, allowing for the use of any of its components independently. It requires Python 3.8+ and an ASGI server such as uvicorn, daphne, or hypercorn for operation.

sniffio 1.3.1

Sniff out which async library your code is running under

idna_ssl 1.1.0

Patch ssl.match_hostname for Unicode(idna) domains support

uvloop 0.22.1

Fast implementation of asyncio event loop on top of libuv