• Stars
    star
    467
  • Rank 93,935 (Top 2 %)
  • Language
    Python
  • License
    Other
  • Created over 11 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The httplib2 caching algorithms packaged up for use with requests.

CacheControl

Latest Version

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 thread safety. 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

More Repositories

1

requests

A simple, yet elegant, HTTP library.
Python
51,920
star
2

black

The uncompromising Python code formatter
Python
38,653
star
3

requests-html

Pythonic HTML Parsing for Humansâ„¢
Python
13,722
star
4

pyperf

Toolkit to run Python benchmarks
Python
785
star
5

fundable-packaging-improvements

Packaging improvements that could be funded
51
star
6

webassembly

A repo to track the progress of Python on WebAssembly (WASM)
48
star
7

request-for

Canonical location of Python Software Foundation Request for Information/Proposal documents.
44
star
8

gh-migration

This repo is used to manage the migration from bugs.python.org to GitHub.
42
star
9

python-in-edu

website for educational python resources
Python
41
star
10

black-pre-commit-mirror

Python
35
star
11

pycon-us-mobile

TypeScript
29
star
12

advisory-database

This is a repository of vulnerability advisories for projects in scope for the Python Software Foundation CVE Numbering Authority (CNA)
Python
25
star
13

bpo-tracker-cpython

Python
24
star
14

project-funding-wg

21
star
15

community-code-of-conduct

The Python Software Foundation Community Code of Conduct
20
star
16

psf-tuf-runbook

A runbook for the PSF, for TUF key setup and initial signing operations to bootstrap signing for PyPI.
Rust
15
star
17

bylaws

PSF Bylaws in markdown format
10
star
18

diversity-and-inclusion-wg

The Diversity and Inclusion Working Group is a volunteer workgroup of the Python Software Foundation. The workgroup's purpose is to further the PSF’s mission to ‘support and facilitate the growth of a diverse and international community of Python programmers.’ We also aim to provide guidance to the PSF Board of Directors in line with this mandate.
CSS
9
star
19

elections

Tools and documentation around running a PSF election
Python
8
star
20

the-invisibles

Pypodcats website
JavaScript
8
star
21

policies

Dockerfile
6
star
22

bpo-roundup

Python
5
star
23

.github

Organization-wide GitHub settings
4
star
24

bpo-tracker-roundup

HTML
1
star
25

bpo-tracker-jython

HTML
1
star
26

fides-deploy

PSFs Deployment of Fides
Python
1
star
27

bpo-rietveld

Python
1
star
28

bpo-django-gae2django

Python
1
star
29

user-success-wg

Repository for the User Success working group at the Python Software Foundation
1
star