requests-cache/requests-cache
Persistent HTTP cache for python requests observed · 2026-08-28
Health v2 · maintenance only
77/100
- Activity 99
- Release rhythm 36
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5256
- days_rel: 212
- days_push: 8
- n_releases_24m: 1
Adoption not part of the score
1501 stars · 163 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
requests-cache is a persistent HTTP caching library for Python's requests library, providing a drop-in CachedSession and optional global patching. It supports multiple storage backends including SQLite, Redis, MongoDB, DynamoDB, and file-based serialization, with flexible expiration via Cache-Control headers or custom schedules.
Use cases
- cache http responses in python requests
- speed up web scraping with persistent caching
- avoid re-downloading api responses
- cache requests session to sqlite
- add ttl-based http caching to python scripts
- reduce api rate limit hits with response caching
When to choose
- you already use the python requests library and want transparent caching
- you need persistent cached responses across script runs
- you want flexible expiration strategies and multiple storage backends
When to avoid
- you use httpx or aiohttp instead of requests
- you need a standalone caching proxy rather than an in-process library
- you need distributed cache invalidation logic beyond HTTP semantics
Facets
library · maturity stable
caching http-client web-development developer-tools crawlers python cross-platform http-cache requests sqlite redis mongodb dynamodb webscraping
2 sources
- readme: https://github.com/requests-cache/requests-cache · fetched 2026-08-28 · 78054e5b13d8
- registry_pypi: https://pypi.org/pypi/requests-cache/json · fetched 2026-08-29 · 860457c4356f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| requests-cache/requests-cache | main | 77 |
For agents
markdown · JSON · MCP: product_card(name="requests-cache/requests-cache")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem