Skip to main content

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)

Source distribution for cachetout 0.3.1
File Size Uploaded
cachetout-0.3.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cachetout 0.3.1
File Interpreter ABI Platform
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}

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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