Skip to main content

Web cache

Latest version Tests status Coverage Supported Python versions License

Python module for simple key-value storage backed up by sqlite3 database. The typical use case is a URL to HTTP data cache, but it can also be used fo non web ressources.

Features

  • Simple dict interface allows natural usage (if key in cache, value = cache[key], etc.)
  • Optional Zlib, BZIP2 or LZMA compression
  • FIFO or LRU cache eviction strategies
  • Optional thread safe interface to work around Python Sqlite3 'same thread' limitation
  • Provides cache hit rate statistics

Installation (from PyPI, with PIP)

web_cache requires Python >= 3.4.

  1. If you don't already have it, install pip for Python 3
  2. Install web_cache: pip3 install web_cache

License

LGPLv2

Metadata

Release files for web_cache 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for web_cache 1.1.0
File Size Uploaded Provenance Actions
web_cache-1.1.0.tar.gz 16.2 kB Without provenance Details for web_cache-1.1.0.tar.gz

Release files / web_cache-1.1.0.tar.gz

Download URL web_cache-1.1.0.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d5a10a34c87beffc794b8e1dec77bf6b419886b9cc60b9b10c706810870e0eb5
BLAKE2b-256 checksum
How to use checksums
1b679970fa9705c2e4234923a1ae0ca96bd5f29571d21b70c5457528347f1eaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

Security for web_cache 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page