CacheControl 0.10.2
pip install CacheControl==0.10.2
Newer version available (0.14.3)
Released:
httplib2 caching for requests
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Eric Larson
- Tags requests, http, caching, web
Classifiers
- Development Status
- Environment
- License
- Operating System
- Programming Language
- Topic
Project description
CacheControl is a port of the caching algorithms in httplib2 for use with requests session object.
It was written because httplib2’s better support for caching is often mitigated by its lack of threadsafety. The same is true of requests in terms of caching.
Quickstart
import requests
from cachecontrol 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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Eric Larson
- Tags requests, http, caching, web
Classifiers
- Development Status
- Environment
- License
- Operating System
- Programming Language
- Topic
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
File details
Details for the file CacheControl-0.10.2.tar.gz
.
File metadata
- Download URL: CacheControl-0.10.2.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3448e5c1ab44e6931834b982a13c09ba9534b94875c91bf05d0aad24d6ed39aa |
|
MD5 | 8b76b02743f66611267281f7103afc48 |
|
BLAKE2b-256 | cb571d074c84b4c2aa3c6064ac6152b77fe116661ad779001c3a4b03ce1ea784 |