httpx
Modern Python HTTP client with async support, replacing the standard requests library.
HTTP clients and networking PyPI BSD-3-Clause
Used in agent projects
266
2.1% of 12,697 public repos built with AI coding agents
Rank in http clients and networking
#6 of 29
by use in those projects
Downloads
16M
PyPI, last 7 days, httpx
GitHub stars
15.6K
last push Oct 2, 2026
How httpx is used
httpx is a dependency in 266 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (2.1%), #6 of 29 in http clients and networking. The most used alternative there is Axios. Projects that use it most often also use Pydantic (61.3%), python-dotenv (56.4%), Uvicorn (50.8%).
Often used with httpx
| Pydantic | 61.3% of httpx projects · 12.0× more than average |
|---|---|
| python-dotenv | 56.4% of httpx projects · 8.6× more than average |
| Uvicorn | 50.8% of httpx projects · 11.8× more than average |
| FastAPI | 48.9% of httpx projects · 11.6× more than average |
| Model Context Protocol SDK (Python) | 42.9% of httpx projects · 11.2× more than average |
| Pydantic Settings | 32.0% of httpx projects · 16.2× more than average |
| PyYAML | 26.3% of httpx projects · 8.7× more than average |
| Requests | 23.7% of httpx projects · 4.5× more than average |
By coding agent
| GitHub Copilot | 4.2% of projects set up for it |
|---|---|
| Claude Code | 3.7% of projects set up for it |
| Cursor | 3.3% of projects set up for it |
| OpenCode | 3.8% of projects set up for it |
| Gemini CLI | 2.7% of projects set up for it |
| OpenAI Codex | 2.4% of projects set up for it |
| Devin Desktop | 2.2% of projects set up for it |
Share of public repos configured for each agent that list httpx as a dependency.
Install
| Package | pip install httpx |
|---|---|
| Main stacks | Python (263), Next.js (2), .NET (1) |
| Example projects | dramaclaw/dramaclaw, The-Swarm-Corporation/AutoHedge, prompt-security/ps-fuzz, nmweaver/soltrade, pavelzbornik/whisperX-FastAPI |
Alternatives to httpx
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| Axios npm Promise-based HTTP client for browser and Node.js with interceptors. |
1,264 (10.0%) | 115M | 109K | MIT |
| Requests pypi Elegant Python HTTP library for making web requests. |
675 (5.3%) | 309M | 54.6K | Apache-2.0 |
| aiohttp pypi Async HTTP client/server framework for Python with WebSocket support. |
295 (2.3%) | 117M | 16.6K | — |
| ws npm Simple, fast WebSocket client and server for Node.js with full RFC support. |
287 (2.3%) | 283M | 22.8K | MIT |
| websockets pypi WebSocket implementation for Python with RFC 6455 and 7692 compliance. |
286 (2.3%) | 109M | 5,732 | — |
| node-fetch npm Bring the Fetch API to Node.js for making HTTP requests. |
219 (1.7%) | 207M | 8,852 | MIT |
| urllib3 pypi HTTP client with thread-safe connection pooling, file uploads and advanced features. |
193 (1.5%) | 338M | 4,071 | — |
| AnyIO pypi Async I/O framework supporting both asyncio and Trio with high-level networking abstractions. |
186 (1.5%) | 206M | 2,555 | — |