httpx vs urllib3
In 1,621 Python projects set up for AI coding agents, httpx is a dependency in 277 (17.1%) and urllib3 in 98 (6.0%): httpx is 2.8× as common. Among repos created in the last 90 days that use a http clients and networking tool, httpx is in 47.2% and urllib3 in 8.3%, against 35.1% and 12.8% of older ones. 14 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 | urllib3 | |
|---|---|---|
| Agent projects that use it | 277 | 98 |
| Rank in http clients and networking | #3 | #12 |
| In new repos with a http clients and networking tool (last 90 days) | 47.2% | 8.3% |
| In older repos with one | 35.1% | 12.8% |
| Downloads, last 7 days | 194M | 37M |
| GitHub stars | 15.8K | 4,084 |
| Last push to its repo | Nov 16, 2026 | Nov 14, 2026 |
| License | BSD | MIT |
| Funding | — | Yes |
| Projects that list both | 14 | |
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 | urllib3 |
|---|---|---|---|
| Claude Code | 782 | 17.9% | 6.9% |
| GitHub Copilot | 805 | 15.9% | 6.7% |
| Cursor | 548 | 15.5% | 6.2% |
| Gemini CLI | 83 | 19.3% | 10.8% |
| OpenAI Codex | 78 | 14.1% | 16.7% |
| OpenCode | 53 | 24.5% | 0% |
| OpenClaw | 104 | 25.0% | 5.8% |
| Devin Desktop | 60 | 10.0% | 8.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
urllib3
HTTP client with thread-safe connection pooling, file uploads and advanced features.
Most often used with it:
| Requests | 89.8% of its projects |
|---|---|
| Pydantic | 67.3% of its projects |
| charset-normalizer | 62.2% of its projects |
| Click | 56.1% of its projects |
| PyYAML | 56.1% of its projects |
pip install urllib3
More matchups
Requests vs httpxhttpx vs aiohttpRequests vs urllib3Axios vs node-fetchAxios vs undiciws 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.