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

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.2.zip (28.3 kB view details)

Uploaded Source

requests-cache-0.1.2.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

requests-cache-0.1.2.win32.exe (208.5 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for requests-cache-0.1.2.zip
Algorithm Hash digest
SHA256 8447e4041381bf2a715013b08450d16d9626e96434fe79d1d0b025c55c594bdb
MD5 e8c671b4c969c3645a0e6d14f87ae059
BLAKE2b-256 19808557af5079495b4c2a607f7c11567613743a028459ecd49a49fabd74083a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for requests-cache-0.1.2.tar.gz
Algorithm Hash digest
SHA256 571adc93f90b3c79274bbe6cd3f8349765b9541475511e48f389e75627693bf6
MD5 7505dde0f838d229075a7fdb468928c8
BLAKE2b-256 6f0d31e196cfeec01ef5ac01cb549e2f9c1df5dfdcb548d7554cbdcd07a229e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for requests-cache-0.1.2.win32.exe
Algorithm Hash digest
SHA256 a2c7b327e15eae778e9f8449f94bf8a2107981505bf48df3557968c95ba543d7
MD5 f386c614c6f7b7b5665b209242976a24
BLAKE2b-256 a7e226f3361aba1c7da35a0e3e5c76b36a2863dddf153a862a10483f71c8c9b1

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