CacheControl
HTTP caching support for Python requests library following RFC 7234.
HTTP clients and networking PyPI Apache-2.0
How CacheControl is used
CacheControl is a dependency in 3 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 110 projects, and what it is used with below comes from all of them. The most used alternative in our scan is httpx (277 projects). Projects that use it most often also use attrs (98.2%), msgpack (Python) (98.2%), NumPy (98.2%).
CacheControl popularity over time
Gid Score 54: downloads 93, use in agent projects 52, GitHub stars 0, downloads trend 56 (each 0-100). How it is calculated.
Often used with CacheControl
| attrs | 98.2% of CacheControl projects · 141.7× more than average |
|---|---|
| msgpack (Python) | 98.2% of CacheControl projects · 358.5× more than average |
| NumPy | 98.2% of CacheControl projects · 16.8× more than average |
| packaging | 96.4% of CacheControl projects · 65.7× more than average |
| CFFI | 95.5% of CacheControl projects · 148.1× more than average |
| MarkupSafe | 93.6% of CacheControl projects · 126.4× more than average |
| cachetools | 92.7% of CacheControl projects · 164.5× more than average |
| Click | 92.7% of CacheControl projects · 37.1× more than average |
From all 110 projects in our scan that use CacheControl, including the dependency samples.
Install
| Package | pip install cachecontrol |
|---|---|
| Main stacks | Python (109), Next.js (1) |
| Example projects | Paper2Poster/Paper2Poster, YuhangChen1/Paper2All, bingreeky/MaAS, AutoLab-SAI-SJTU/AutoPage, farzad528/mcp-server-azure-ai-agents |
Alternatives to CacheControl
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside CacheControl are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| httpx pypi Modern Python HTTP client with async support, replacing the standard requests library. |
77 | 277 (17.1%) | 17M | 15.6K | BSD |
| urllib3 pypi HTTP client with thread-safe connection pooling, file uploads and advanced features. |
74 | 96 (5.9%) | 347M | 4,076 | MIT |
More in HTTP clients and networking: Axios Requests ws aiohttp websockets redis (Python) postgres node-fetch