Skip to main content

httplib2 caching for requests

Project description

CacheYou

Latest Version CI

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


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.3.tar.gz (43.2 kB view hashes)

Uploaded Source

Built Distribution

cacheyou-23.3-py3-none-any.whl (22.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page