requests-etag-cache

requests etag cache


Keywords
requests, cache, python
License
Unlicense
Install
pip install requests-etag-cache==2020.12.3

Documentation

Installation

$ [sudo] pip install requests-etag-cache

How it works

$REQUESTS_ETAG_CACHE/<url_hash>

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

Examples

import requests
import requests_etag_cache

r = requests.get('https://pypi.org/project/requests/')
if not requests_etag_cache.uptodate(r):
    ...
    requests_etag_cache.save(r)

readme42.com