talira

Asynchronous HTTP client/server framework for asyncio and Python

open sourceApache-2.0free

aiohttp is an asynchronous HTTP client and server framework for Python built on asyncio. Its client sends requests through a reusable session with middleware for customizing requests and responses, and its web server has middlewares, signals and pluggable routing. Both sides support WebSockets out of the box. Optional speedups add faster DNS resolution and Brotli compression.

Problems it solves

  • make many HTTP requests concurrently from Python with asyncio
  • build an async web server and WebSocket endpoint in Python
  • call APIs from async Python code without blocking

Features

  • async HTTP client with sessions and middleware
  • async web server with middlewares, signals and routing
  • client and server WebSockets
  • optional aiodns and Brotli speedups

Alternatives

The same job

These do what aiohttp does.

  1. HTTPX A next-generation HTTP client for Python
  2. Requests HTTP for humans: the standard HTTP client library for Python

Compare aiohttp with the top 3