# requests-cache/requests-cache

Persistent HTTP cache for python requests

Repository: https://github.com/requests-cache/requests-cache
Canonical: https://ross.abutalabs.com/products/requests-cache
Homepage: https://requests-cache.readthedocs.io
Language: Python
License: BSD-2-Clause
License Family: permissive
Topics: cache, dynamodb, http, mongodb, performance, redis, requests, sqlite, web, webscraping
Last push: 2026-08-25T22:17:38+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 36, longevity 100
- inputs: {"age_days": 5256, "days_push": 8, "days_rel": 212, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1501, forks 163 (observed 2026-08-28T04:04:54.327828+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: caching, http-client
- domain: web-development, developer-tools, crawlers
- platform: python, cross-platform
- tags: http-cache, requests, sqlite, redis, mongodb, dynamodb, webscraping

## Member repositories
- requests-cache/requests-cache (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:54.327828+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:32:57.329078+00:00, confidence not recorded.
  - readme: https://github.com/requests-cache/requests-cache (fetched 2026-08-28T04:04:54.327828+00:00, sha 78054e5b13d8)
  - registry_pypi: https://pypi.org/pypi/requests-cache/json (fetched 2026-08-29T11:38:23.557608+00:00, sha 860457c4356f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
