Cachetout
A persistent, type-safe caching library for Python.
Installation
$ pip install cachetout
Usage
from cachetout import Cache
cache = Cache("my_app_cache")
cache.set("user:123", {"name": "Alice", "age": 30})
user = cache.get("user:123", type=dict)
print(user) # {'name': 'Alice', 'age': 30}
del cache["user:123"]
For more examples, including the cache decorator, serialisation, and
expiration, see the documentation.
Development
Tests
$ uv run pytest
Linting
$ uv run ruff format
$ uv run ruff check
$ uv run ty check
Release files for cachetout 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cachetout-0.3.1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cachetout-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / cachetout-0.3.1.tar.gz
| Download URL | cachetout-0.3.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4e3d50e618bab55d9c8a78073527c337e857653449ca663270a1da1173915e5
|
|
BLAKE2b-256 checksum How to use checksums |
f7268bfb5f04b03901ed1b0f890f7cbb3a307e79322eb9181c20de0886223f5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / cachetout-0.3.1-py3-none-any.whl
| Download URL | cachetout-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
891d9c93e32dcf5935b953cf6887aaaac479a108c3cbc2948ea2028ab920b4d6
|
|
BLAKE2b-256 checksum How to use checksums |
07a8703fac79ad79ee228e82c1076d2db74517cd2ff01d125d90f10625a00b60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|