Skip to main content

Durable file-backed caching for JSON-like data with pluggable storage backends

Project description

PyperCache

A Python library providing durable file-backed caching for JSON-like data with pluggable storage backends (pickle, JSON, chunked manifest, SQLite), optional TTL and staleness semantics, read-only query navigation, and append-only request logging.

Installation

pip install pypercache

Or install from source:

git clone https://github.com/BrandonBahret/PyperCache.git
cd PyperCache
pip install .

Quick Start

See the full documentation, examples, and API reference on GitHub:

https://github.com/BrandonBahret/PyperCache/tree/master/docs

Features

  • Pluggable Backends: Choose storage by file extension (.pkl, .json, .manifest, .db)
  • TTL & Staleness: Optional expiry and acceptable staleness windows
  • Typed Objects: Decorate classes for automatic serialization/deserialization
  • Query Navigation: Safe, read-only JSON path queries with filters
  • Request Logging: Thread-safe JSONL audit trails

Testing

pytest

License

MIT License (see LICENSE file)

Project details


Download files

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

Source Distribution

pypercache-0.1.2.tar.gz (58.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypercache-0.1.2-py3-none-any.whl (36.2 kB view details)

Uploaded Python 3

File details

Details for the file pypercache-0.1.2.tar.gz.

File metadata

  • Download URL: pypercache-0.1.2.tar.gz
  • Upload date:
  • Size: 58.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for pypercache-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d26327efc7e055c9331e55ddafa5d8d8318401aa4d0cbd9502fd10b50b665cbb
MD5 b78930fe874503831c5b880d45067683
BLAKE2b-256 0dbc431421cff9bf385ad54a3a2b51104b1d10d5950916fb0305b9066bbe8b6c

See more details on using hashes here.

File details

Details for the file pypercache-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pypercache-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 36.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for pypercache-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fad0712bce2db5aedd9e2e19dcf56048e47e48f4189e6cddc2be88df8c295fda
MD5 640077cb883e7c20ed0a7f976e15d92c
BLAKE2b-256 781c08d10ae51b01d70122f4310b4d438e343a5cd7655dfe19ff7fa9db2acc50

See more details on using hashes here.

Supported by

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