qmetrics.net

aiohttp

Asynchronous HTTP client and server for asyncio

aiohttp screenshot

Python library that implements async HTTP clients and servers on top of asyncio, with optional WebSockets, middleware, and pluggable routing.

Overview

aiohttp provides both sides of HTTP for asyncio-based Python programs: an async client for outbound requests and a web server for inbound traffic. It is meant to be imported into application code rather than run as a standalone product.

On the client, you work through a session object that performs non-blocking GET, POST, and related calls. Optional aiodns integration speeds DNS resolution. On the server, you define an application, attach routes, and can handle ordinary HTTP as well as WebSocket conversations without nested callback chains.

Server features include middleware, signals, and flexible routing tables. Client code can attach middleware to customize how requests and responses are processed. The stack builds on multidict, yarl, and frozenlist, with optional Brotli compression support when those extras are installed.

You install the package with pip and embed it in your own services or scripts. Community discussion happens on GitHub, Matrix, and Stack Overflow; the project maintains backward-compatibility policies for public APIs.

Key features

  • Async HTTP client and server
  • WebSocket client and server support
  • Pluggable routing and middleware
  • Client middleware hooks
  • Optional fast DNS via aiodns
  • Multipart and streaming utilities
  • Web server signals

Use cases

  • Async web APIs in Python
  • Non-blocking HTTP client jobs
  • WebSocket chat or push endpoints
  • Replacing blocking HTTP in asyncio apps

Tags

Similar software

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

OkHttp

HTTP client for JVM, Android, and GraalVM

OkHttp is an HTTP client library tuned for efficient networking on Android, Java, and GraalVM native images. It offers synchronous and asynchronous call APIs with a fluent request builder.

★ 47.1k⟳ yesterdayApache-2.0
Frameworks & PlatformsDesktop/CLI app

gRPC

Cross-language remote procedure call framework

gRPC is an RPC framework that lets client and server programs communicate transparently and supports building connected, multi-language systems.

★ 45.5k⟳ todayApache-2.0

tRPC

End-to-end typesafe TypeScript APIs without code generation

tRPC helps teams define server procedures and call them from clients with full TypeScript types for inputs, outputs, and errors—no schemas or codegen step.

★ 40.9k⟳ todayMIT
Frameworks & PlatformsDesktop/CLI app

go-zero

Cloud-native Go microservices and RPC framework

go-zero is a Go web and RPC framework with code generation, built-in resilience middleware, and tooling aimed at stable high-traffic services.

★ 33.5k⟳ 9 days agoMIT