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 docs/README.md for detailed documentation, examples, and API reference.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypercache-0.1.0.tar.gz.
File metadata
- Download URL: pypercache-0.1.0.tar.gz
- Upload date:
- Size: 58.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74e1d52d79b6d0cae054ce81cc1ac7eca77940ce3bde7f5c2e748184965b579a
|
|
| MD5 |
36af29055ff484760ab5ca1215ae1fae
|
|
| BLAKE2b-256 |
ccb94ffa3e151b307e42d15d9a8fa6a6997b179b2fe3aeb43563c137b38fb472
|
File details
Details for the file pypercache-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pypercache-0.1.0-py3-none-any.whl
- Upload date:
- Size: 36.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2da3d1b06bb1fcd892427d9fc19a7d8437e503ac3025c22af73d6fb436b4317c
|
|
| MD5 |
7a2e9ebc4360f38706a4323ca5d753bd
|
|
| BLAKE2b-256 |
31acd4eb842e1f0373a8275e3dd8f81fc173a56f90b6c5edd65a0445f7b487cc
|