requests-cache
Requests-cache is a transparent persistent cache for requests (version <= 0.14.2) library.
Usage example
Just write:
import requests
import requests_cache
requests_cache.configure('demo_cache')
And all responses with headers and cookies will be transparently cached to demo_cache.sqlite database. For example, following code will take only 1-2 seconds instead 10, and will run instantly on next launch:
for i in range(10):
requests.get('http://httpbin.org/delay/1')
It can be useful when you are creating some simple data scraper with constantly changing parsing logic or data format, and don’t want to redownload pages or write complex error handling and persistence.
Links
Documentation at readthedocs.org
Source code and issue tracking at GitHub.
History
0.2.1 (2013-01-13)
Fix broken PyPi package
0.2.0 (2013-01-12)
Last backward compatible version for Requests 0.14.2
0.1.3 (2012-05-04)
Thread safety for default sqlite backend
Take into account the POST parameters when cache is configured with ‘POST’ in allowable_methods
0.1.2 (2012-05-02)
Reduce number of sqlite database write operations
fast_save option for sqlite backend
0.1.1 (2012-04-11)
Fix: restore responses from response.history
Internal refactoring (MemoryCache -> BaseCache, reduce_response and restore_response moved to BaseCache)
connection option for MongoCache
0.1.0 (2012-04-10)
initial PyPI release
Metadata
Release files for requests-cache 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| requests-cache-0.2.1.zip | 31.5 kB | Without provenance | Details for requests-cache-0.2.1.zip | |
| requests-cache-0.2.1.tar.gz | 21.0 kB | Without provenance | Details for requests-cache-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| requests-cache-0.2.1.win32.exe | Details for requests-cache-0.2.1.win32.exe |
Total release size: 262.6 kB
Release files / requests-cache-0.2.1.zip
| Download URL | requests-cache-0.2.1.zip |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a57b6cf43437de860dc46ec6ed3c8cefb05d2be1540f4a0f03c1a1af79bf9b8
|
|
BLAKE2b-256 checksum How to use checksums |
b63ec7c7f7f4a787d392f6ecd375b4075b9f6cc56add4eb91708f80ed86ede7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / requests-cache-0.2.1.tar.gz
| Download URL | requests-cache-0.2.1.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fcb483ea4db5df85d9f2ef10a1de7dec9a1d05b479f5cc1649766eb68b18c89f
|
|
BLAKE2b-256 checksum How to use checksums |
d9dcafa94bc6673e5d650e745add020d365e3a25d8ffdf902ed8d9ae756df388
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / requests-cache-0.2.1.win32.exe
| Download URL | requests-cache-0.2.1.win32.exe |
|---|---|
| Size | 210.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64102c926027c5d2f70ae8fdd6f66bdfa7bc455efefcd54e10722c75fa642293
|
|
BLAKE2b-256 checksum How to use checksums |
6bed42fc8740aad77e176e7103010d3b4c39cfe97adede01fd2d952835ce9b71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for requests-cache 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.