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.2.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

cacheyou-23.2-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cacheyou-23.2.tar.gz
Algorithm Hash digest
SHA256 e64cd34f65e3e121df1ad6e2a70f87b42970b7cbba233a1c38b34d1a3fbb8131
MD5 d2afcec6c8de15531bf980d338f8e07f
BLAKE2b-256 92ba58715e6183e2143499f5d6434be66313d8c9b4f1fddff8695116ecf8e669

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: cacheyou-23.2-py3-none-any.whl
  • Upload date:
  • Size: 40.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c0d7ac6742b1a56d9767bf694e2774e70da7979254e4f947360a72d25a3ed1b6
MD5 209f4c434afda15e902577cb9cba9872
BLAKE2b-256 b0b3a50c4205da066731a22db5b1443f382b94c89a4a6c7767e7441c86987d48

See more details on using hashes here.

Provenance

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