PYPI PACKAGE AUDIT v0.15.0 Enterprise Healthy

CacheControl

Cache httplib2 para solicitações

PyPkgScore cachecontrol
Metodologia & Critérios ♥ Donate
870 / 1000
Instalação Rápida
pip install cachecontrol
1. Governança
150/200
2. Metadados PEP
200/200
3. Segurança
200/200
4. Docs & SEO
155/200
5. Engenharia CI
165/200
📣 Compartilhar Auditoria: Envie este relatório e a prévia visual no idioma atual
Advertisement
PYPI TELEMETRY

Downloads & Adoção na Comunidade

Últimos 30 dias (sem espelhos)
Últimos 7 dias
25700110
Últimos 30 dias
108656971
Total (180 dias)
649484168
Métrica / Ecossistema Status / Valor Fonte
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✓ Verified OIDC PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 870 / 1000 PyPkgScore Engine

Análise de Saúde & Engenharia (5 Pilares)

1. Governança & Comunidade150 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✓ 50 pts
CONTRIBUTING.md✓ 50 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. Metadados & Empacotamento PEP200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Segurança & Supply Chain200 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✓ 50 pts
Snyk / Audit Link✓ 40 pts
Repositório HTTPS✓ 50 pts
4. Documentação, SEO & Ecossistema155 / 200 ▾
README Estruturado✓ 60 pts
Read the Docs✓ 50 pts
Django Packages✕ 0 pts
Site / Artigos Técnicos✓ 45 pts
5. Engenharia, CI & Qualidade165 / 200 ▾
Testes Automatizados✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✓ 35 pts
Advertisement
README & DOCS

Documentação Oficial & Guia de Uso — cachecontrol

PyPI Metadata v0.15.0
Exibir documentação original completa (README em Inglês) ▾

.. SPDX-FileCopyrightText: SPDX-FileCopyrightText: 2015 Eric Larson

SPDX-License-Identifier: Apache-2.0

============== CacheControl

.. image:: https://img.shields.io/pypi/v/cachecontrol.svg :target: https://pypi.python.org/pypi/cachecontrol :alt: Latest Version

.. image:: https://github.com/psf/cachecontrol/actions/workflows/tests.yml/badge.svg :target: https://github.com/psf/cachecontrol/actions/workflows/tests.yml

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

.. code-block:: python

import requests

from cachecontrol import CacheControl

sess = requests.session() cached_sess = CacheControl(sess)

response = cached_sess.get('https://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_

.. _docs: http://cachecontrol.readthedocs.org/en/latest/ .. _httplib2: https://github.com/httplib2/httplib2 .. _requests: http://docs.python-requests.org/