Skip to content

The httplib2 caching algorithms packaged up for use with requests.

License

Notifications You must be signed in to change notification settings

frostming/cacheyou

 
 

Repository files navigation

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

About

The httplib2 caching algorithms packaged up for use with requests.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 100.0%