Contents Menu Expand Light mode Dark mode Auto light/dark mode
requests-cache 1.1.1 documentation
Light Logo Dark Logo
  • User Guide
    • Installation
    • General Usage
    • Backends
      • DynamoDB
      • Filesystem
      • GridFS
      • MongoDB
      • Redis
      • SQLite
    • Cache Files
    • Troubleshooting
    • Cache Filtering
    • Cache Headers
    • Cache Inspection
    • Expiration
    • Request Matching
    • Security
    • Serializers
    • Advanced Requests
    • Compatibility with other libraries
  • Examples
  • API Reference
    • Session
    • Patcher
    • Backends
      • Base
      • DynamoDB
      • Filesystem
      • GridFS
      • MongoDB
      • Redis
      • SQLite
    • Models
      • Base
      • Raw Response
      • Request
      • Response
    • Cache Keys
    • Policy
      • Actions
      • Directives
      • Expiration
      • Settings
    • Serializers
      • Cattrs
      • Pipeline
      • Preconf
  • Project Info
    • Contributing
      • Note to Code Shelter maintainers
    • Contributors
    • Code of Conduct
    • Related Projects
    • History
Back to top

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 on requests-cache

  • CacheControl: An HTTP cache that ports features from httplib2 for usage with requests

  • httpx-cache: A sync+async HTTP cache that ports features from httplib2 for usage with httpx

Server-side HTTP caching#

  • aiohttp-cache: A server-side async HTTP cache for the aiohttp web server

  • fastapi-cache: A server-side async HTTP cache for applications build with FastAPI

  • flask-caching: A server-side HTTP cache for applications built with Flask

General#

  • aiocache: General-purpose async cache backends

  • cachier: A general-purpose cache with file-based and MongoDB backends

  • diskcache: A general-purpose file-based cache built on SQLite

Testing#

  • requests-mock: A requests transport adapter that mocks HTTP responses

  • responses: A utility for mocking out the requests library

  • vcrpy: Records responses to local files and plays them back for tests; inspired by Ruby’s VCR. Works at the httplib level 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 by responses

  • aresponses: An asyncio testing server for mocking external services

Next
History
Previous
Code of Conduct
Made with Furo
On this page
  • Related Projects
    • Client-side HTTP caching
    • Server-side HTTP caching
    • General
    • Testing