Skip to main content

Persistent cache for requests library

Project description

requests-cache

Requests-cache is a transparent persistent cache for requests library.

Usage example

Just write:

import requests
import request_cache

request_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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

requests-cache-0.1.0.zip (27.2 kB view details)

Uploaded Source

requests-cache-0.1.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

requests-cache-0.1.0.win32.exe (208.1 kB view details)

Uploaded Source

File details

Details for the file requests-cache-0.1.0.zip.

File metadata

  • Download URL: requests-cache-0.1.0.zip
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for requests-cache-0.1.0.zip
Algorithm Hash digest
SHA256 ddcc4e962921423b92ea790509d3a7c3d29a57231ff9709b31310fe9ce44414e
MD5 aa04501916a101c0687115c58d924108
BLAKE2b-256 78dbc933a7459a45b0efbd5fd1382f9484915b2505127e4de4c7619c846d7c4d

See more details on using hashes here.

File details

Details for the file requests-cache-0.1.0.tar.gz.

File metadata

File hashes

Hashes for requests-cache-0.1.0.tar.gz
Algorithm Hash digest
SHA256 400ba8ee3b7d95fc437c293a2bd0e3d6e1102a5b45fac3b29fb144ebbbeb5723
MD5 05067859804f3d51ff7255085db7114c
BLAKE2b-256 0812f10ab0bbcb2b822f5441b9e14fa2d3e6c9a4034fcd6dbc47c2be28d2084c

See more details on using hashes here.

File details

Details for the file requests-cache-0.1.0.win32.exe.

File metadata

File hashes

Hashes for requests-cache-0.1.0.win32.exe
Algorithm Hash digest
SHA256 162a98caa5cfeb00c2d635758ab2978d3d3b2f07ce021d18f1efc819f747c13d
MD5 17c96229c026d43ddffaf7d137ff9ff0
BLAKE2b-256 dd44f70abd8aa0a152a6bad298e9706c7f8c6f3961153cbc0212827a7fe52b5c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page