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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file cacheyou-23.3.tar.gz.

File metadata

  • Download URL: cacheyou-23.3.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.6.1 CPython/3.10.6

File hashes

Hashes for cacheyou-23.3.tar.gz
Algorithm Hash digest
SHA256 7e408f15f4978fea2247734b308621f75f7fe169b461679519c72e8a85d61d5d
MD5 1fa21b2d3b8a547f77d1ee6a8a421fdd
BLAKE2b-256 8e6e8a9d13f938789b29e89b78cfeb9d0a9e002c67272ead73060c8306b74fc8

See more details on using hashes here.

File details

Details for the file cacheyou-23.3-py3-none-any.whl.

File metadata

  • Download URL: cacheyou-23.3-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.6.1 CPython/3.10.6

File hashes

Hashes for cacheyou-23.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eeed1d071495ed59be0049c3897a4c3c056c4b30f751b3197b823c518bcac604
MD5 0725f7d02d8e002b28576d27d2441df5
BLAKE2b-256 41e11864f74d5ea8edfe4e217ce6cf81d04989b32ef949487b289753227a64af

See more details on using hashes here.

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