requests-cache
Persistent HTTP cache for python requests
File Explorer
Download Latest Version (.zip)- bug.md
- feature.md
- question.md
- build.yml
- codeql.yml
- deploy.yml
- code_of_conduct.md
- dependabot.yml
- pull_request_template.md
- dynamodb.png
- dynamodb_32px.png
- dynamodb_create_table.png
- dynamodb_items.png
- dynamodb_response.png
- favicon.ico
- file-json.png
- file-json_32px.png
- file-pickle.png
- file-pickle_32px.png
- file-toml.png
- file-toml_32px.png
- file-yaml.png
- file-yaml_32px.png
- file-yaml_32px.png.png
- files-generic.png
- files-generic_32px.png
- files-json.png
- files-json_32px.png
- memcached.png
- memcached_32px.png
- memory_32px.png
- mongodb.png
- mongodb_32px.png
- mongodb_vscode.png
- redis.png
- redis_32px.png
- requests-cache-gh-preview.png
- requests-cache-icon.png
- requests-cache-logo-dark.webp
- requests-cache-logo-header.png
- requests-cache-logo-light.webp
- sqlite.png
- sqlite_32px.png
- table.css
- toml.png
- module.rst.jinja
- package.rst.jinja
- requests_cache.session.md
- code_of_conduct.md
- contributing.md
- contributors.md
- history.md
- packages.md
- related_projects.md
- sample_response_binary.json
- sample_response_binary.yaml
- sample_response_json.json
- sample_response_json.yaml
- dynamodb.md
- filesystem.md
- gridfs.md
- mongodb.md
- redis.md
- sqlite.md
- advanced_requests.md
- backends.md
- compatibility.md
- expiration.md
- files.md
- filtering.md
- general.md
- headers.md
- inspection.md
- installation.md
- matching.md
- security.md
- serializers.md
- troubleshooting.md
- requests-cache-logo-header.svg
- requests-cache-logo.svg
- requests_cache_icon.svg
- 404.rst
- conf.py
- docker-compose.yml
- Dockerfile
- examples.md
- index.md
- project_info.md
- reference.md
- user_guide.md
- basic_patching.py
- basic_sessions.py
- benchmark.py
- cloudformation.yml
- convert_cache.py
- custom_request_matcher.py
- expiration.py
- external_config.py
- external_config.yml
- generate_test_db.py
- github_actions.yml
- log_requests.py
- pygithub.py
- README.md
- rps_graph.png
- rps_graph.py
- threads.py
- time_machine_backtesting.py
- url_patterns.py
- vcr.py
- __init__.py
- base.py
- dynamodb.py
- filesystem.py
- gridfs.py
- mongodb.py
- redis.py
- sqlite.py
- __init__.py
- base.py
- raw_response.py
- request.py
- response.py
- __init__.py
- actions.py
- directives.py
- expiration.py
- settings.py
- __init__.py
- cattrs.py
- pipeline.py
- preconf.py
- __init__.py
- _utils.py
- cache_keys.py
- patcher.py
- py.typed
- session.py
- httpbin_sample.test-db
- README.md
- test_requests_mock_combine_cache.py
- test_requests_mock_disable_cache.py
- test_requests_mock_load_cache.py
- test_responses_load_cache.py
- __init__.py
- base_cache_test.py
- base_storage_test.py
- test_dynamodb.py
- test_filesystem.py
- test_memory.py
- test_mongodb.py
- test_redis.py
- test_sqlite.py
- test_upgrade.py
- sample.db.0.3.0
- sample.db.0.4.0
- sample.db.0.5.0
- sample.db.0.6.0
- sample.db.0.7.0
- sample.db.0.8.0
- sample.db.0.9.0
- sample.db.1.0.0
- sample.db.1.1.0
- sample.db.1.2.0
- sample.db.1.3.0
- vcr_requests_cache.yaml
- vcr_vcrpy.yaml
- test_base.py
- test_raw_response.py
- test_request.py
- test_response.py
- test_actions.py
- test_expiration.py
- test_base_cache.py
- test_cache_keys.py
- test_normalize.py
- test_patcher.py
- test_serializers.py
- test_session.py
- __init__.py
- benchmark_serializers.py
- conftest.py
- generate_test_db.py
- README.md
- .all-contributorsrc
- .gitignore
- .pre-commit-config.yaml
- .readthedocs.yml
- CONTRIBUTING.md
- CONTRIBUTORS.md
- docker-compose.yml
- HISTORY.md
- LICENSE
- noxfile.py
- pyproject.toml
- README.md
- uv.lock
# Installation Guide
1. Get the code
git clone https://github.com/requests-cache/requests-cache
Downloads the entire project code from GitHub to your computer.
cd requests-cache
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Python 3 Python is required to use pip.
pip install requests-cache
Installs the package published on PyPI directly β no need to clone the source.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Docker
EasyPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker compose up -d --build
Builds and starts all defined containers (server, database, etc.) at once, in the background.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
4. Python
EasyPrerequisites
pip install requests-cache
Installs the package published on PyPI directly β no need to clone the source.
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
