httplib2 caching for requests
Project description
CacheYou
CacheYou is a fork of CacheControl which is a port of the caching algorithms in httplib2 for use with requests session object.
Quickstart
import requests
from cacheyou import CacheControl
sess = requests.session()
cached_sess = CacheControl(sess)
response = cached_sess.get('http://google.com')
If the URL contains any caching based headers, it will cache the result in a simple dictionary.
For more info, check out the docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cacheyou-23.1.tar.gz
(43.0 kB
view hashes)
Built Distribution
cacheyou-23.1-py3-none-any.whl
(40.5 kB
view hashes)