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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

web_cache-1.1.0.tar.gz (16.2 kB view details)

Uploaded Source

File details

Details for the file web_cache-1.1.0.tar.gz.

File metadata

  • Download URL: web_cache-1.1.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for web_cache-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d5a10a34c87beffc794b8e1dec77bf6b419886b9cc60b9b10c706810870e0eb5
MD5 ac89ba0cb285c32f81e11ecaefd00aa2
BLAKE2b-256 1b679970fa9705c2e4234923a1ae0ca96bd5f29571d21b70c5457528347f1eaf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 file

1.0.2

1 file

1.0.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page