Related Projects¶
If requests-cache isn’t quite what you need, you can help make it better! See the Contributing Guide for details.
For other use cases, you can check out these other python projects related to caching:
Client-side HTTP caching¶
aiohttp-client-cache: An async HTTP cache for
aiohttp, based onrequests-cacheCacheControl: An HTTP cache that ports features from
httplib2for usage withrequestsHishel: A sync+async HTTP cache for
httpx
Server-side HTTP caching¶
aiohttp-cache: A server-side async HTTP cache for the
aiohttpweb serverdjango cache: Built-in server-side caching for Django applications
fastapi-cache: A server-side async HTTP cache for applications built with FastAPI
flask-caching: A server-side HTTP cache for applications built with Flask
starlette-caches: HTTP caching middleware for Starlette/FastAPI, inspired by Django’s cache framework
General¶
aiocache: General-purpose async cache backends
cachier: A general-purpose cache with file-based and MongoDB backends
cachetools: Memoizing collections and decorators with LRU, TTL, FIFO, and other eviction strategies
diskcache: A general-purpose file-based cache built on SQLite
dogpile.cache: A caching frontend with concurrency locking and backends for Redis, Memcached, and databases
Testing¶
requests-mock: A
requeststransport adapter that mocks HTTP responsesresponses: A utility for mocking out the
requestslibraryvcrpy: Records responses to local files and plays them back for tests; inspired by Ruby’s VCR. Works at the
httpliblevel and is compatible with multiple HTTP libraries.betamax: Records responses to local files and plays them back for tests; inspired by Ruby’s VCR. Made specifically for
requests.HTTPretty: HTTP Client mocking tool that provides a full fake TCP socket module; inspired by Ruby’s FakeWeb.
aioresponses: A helper to mock web requests in
aiohttp, inspired byresponsesaresponses: An asyncio testing server for mocking external services
pook: HTTP traffic mocking with support for
requests,aiohttp, andhttpx