Skip to main content

requests etag cache

Project description


$ [sudo] pip install requests-etag-cache

How it works


$XDG_CACHE_HOME/requests-etag-cache/<url_hash> by default


function __doc__
requests_etag_cache.clear() remove all cache keys
requests_etag_cache.get(response) get cached etag value
requests_etag_cache.rm(response) remove response cache save response etag value
requests_etag_cache.uptodate(response) return True if response is cached, else False


import requests
import requests_etag_cache

r = requests.get('')
if not requests_etag_cache.uptodate(r):


Project details

Release history Release notifications

Download files

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

Files for requests-etag-cache, version 2019.9.25
Filename, size File type Python version Upload date Hashes
Filename, size requests-etag-cache-2019.9.25.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page