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)