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.0.tar.gz
(41.9 kB
view details)
Built Distribution
cacheyou-23.0-py3-none-any.whl
(38.7 kB
view details)
File details
Details for the file cacheyou-23.0.tar.gz
.
File metadata
- Download URL: cacheyou-23.0.tar.gz
- Upload date:
- Size: 41.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.6.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5166c4f4f150a7ccef271febaa1fccf7dad42c2f2792aeb9d0cdb6280e9af1 |
|
MD5 | 4ecbd40420481652aba76339c9610493 |
|
BLAKE2b-256 | 069dcc2a7a3c9ce8b5eb39c88b0431d21f74661cc12895a142beb1e45b52f5c0 |
Provenance
File details
Details for the file cacheyou-23.0-py3-none-any.whl
.
File metadata
- Download URL: cacheyou-23.0-py3-none-any.whl
- Upload date:
- Size: 38.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.6.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d702592c5ea8bd7cf85fadda0d9f1a41ddfcd3236181360224391492d2c9b524 |
|
MD5 | 6f77049654550e7fe48952e2b1f263a9 |
|
BLAKE2b-256 | 4937545f31136ddc12c6fbe482fabee6065e90845002846e88cd2168cf079924 |