Requests vs httpx
In 1,621 Python projects set up for AI coding agents, Requests is a dependency in 425 (26.2%) and httpx in 277 (17.1%): Requests is 1.5× as common. Among repos created in the last 90 days that use a http clients and networking tool, Requests is in 58.3% and httpx in 47.2%, against 54.6% and 35.1% of older ones. 56 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
| Requests | httpx | |
|---|---|---|
| Agent projects that use it | 425 | 277 |
| Rank in http clients and networking | #2 | #3 |
| In new repos with a http clients and networking tool (last 90 days) | 58.3% | 47.2% |
| In older repos with one | 54.6% | 35.1% |
| Downloads, last 7 days | 345M | 194M |
| GitHub stars | 54.7K | 15.8K |
| Last push to its repo | Nov 2, 2026 | Nov 16, 2026 |
| License | Apache-2.0 | BSD |
| Funding | — | — |
| Projects that list both | 56 | |
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 | Requests | httpx |
|---|---|---|---|
| Claude Code | 782 | 26.0% | 17.9% |
| GitHub Copilot | 805 | 25.7% | 15.9% |
| Cursor | 548 | 27.7% | 15.5% |
| Gemini CLI | 83 | 28.9% | 19.3% |
| OpenAI Codex | 78 | 21.8% | 14.1% |
| OpenCode | 53 | 20.8% | 24.5% |
| OpenClaw | 104 | 38.5% | 25.0% |
| Devin Desktop | 60 | 33.3% | 10.0% |
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.
Requests
Elegant Python HTTP library for making web requests.
Most often used with it:
| python-dotenv | 56.9% of its projects |
|---|---|
| Pydantic | 44.0% of its projects |
| Uvicorn | 40.5% of its projects |
| NumPy | 38.1% of its projects |
| FastAPI | 36.2% of its projects |
pip install requests
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
More matchups
httpx vs aiohttphttpx vs urllib3Requests 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.