httpx vs aiohttp
In 1,621 Python projects set up for AI coding agents, httpx is a dependency in 277 (17.1%) and aiohttp in 127 (7.8%): httpx is 2.2× as common. Among repos created in the last 90 days that use a http clients and networking tool, httpx is in 47.2% and aiohttp in 5.6%, against 35.1% and 16.9% of older ones. 33 projects list both, often a sign of a migration or of a monorepo with several apps.
HTTP clients and networking PyPI Updated Nov 17, 2026
Side by side
| httpx | aiohttp | |
|---|---|---|
| Agent projects that use it | 277 | 127 |
| Rank in http clients and networking | #3 | #5 |
| In new repos with a http clients and networking tool (last 90 days) | 47.2% | 5.6% |
| In older repos with one | 35.1% | 16.9% |
| Downloads, last 7 days | 194M | 133M |
| GitHub stars | 15.8K | 16.6K |
| Last push to its repo | Nov 16, 2026 | Nov 16, 2026 |
| License | BSD | Apache-2.0 AND MIT |
| Funding | — | Yes |
| Projects that list both | 33 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from PyPI.
By coding agent
| Projects set up for | Python repos | httpx | aiohttp |
|---|---|---|---|
| Claude Code | 782 | 17.9% | 8.3% |
| GitHub Copilot | 805 | 15.9% | 7.3% |
| Cursor | 548 | 15.5% | 9.1% |
| Gemini CLI | 83 | 19.3% | 15.7% |
| OpenAI Codex | 78 | 14.1% | 9.0% |
| OpenCode | 53 | 24.5% | 9.4% |
| OpenClaw | 104 | 25.0% | 8.7% |
| Devin Desktop | 60 | 10.0% | 13.3% |
Share of the Python repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
httpx
Modern Python HTTP client with async support, replacing the standard requests library.
Most often used with it:
| Pydantic | 57.0% of its projects |
|---|---|
| Uvicorn | 52.3% of its projects |
| python-dotenv | 50.9% of its projects |
| FastAPI | 49.1% of its projects |
| Model Context Protocol SDK (Python) | 43.3% of its projects |
pip install httpx
aiohttp
Async HTTP client/server framework for Python with WebSocket support.
Most often used with it:
| python-dotenv | 76.4% of its projects |
|---|---|
| Pydantic | 68.5% of its projects |
| Requests | 62.2% of its projects |
| Uvicorn | 59.1% of its projects |
| FastAPI | 58.3% of its projects |
pip install aiohttp
More matchups
Requests vs httpxhttpx vs urllib3Axios vs node-fetchAxios vs undiciRequests vs urllib3ws vs Socket.IO Clientws vs Socket.IO
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.