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
web_cache-1.1.0.tar.gz 16.2 kB Details

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

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.2

1 release file

1.0.0

1 release file

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