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.0

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.0
File Size Uploaded
cachetout-0.3.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cachetout 0.3.0
File Interpreter ABI Platform
cachetout-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / cachetout-0.3.0.tar.gz

Download URL cachetout-0.3.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2cf6bd838fe2a56ab8ce6cc9e1042a82e8c7db4c051f0cd30dfaa7d3757268ba
BLAKE2b-256 checksum
How to use checksums
309c14c8c5319c5452c6645824b6f7fadb74adde88c791b5d5ade4575239bc6f
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.0-py3-none-any.whl

Download URL cachetout-0.3.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb8df8311ecb390f1fa5849ddd6192a381280fbe4fb44f1846f38bab440b30ee
BLAKE2b-256 checksum
How to use checksums
11551c39e478da1afd6188102cf5bf39bae1ce48a3ee3f1331207313f7fd26c1
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

0.3.1

2 release files

This release

0.3.0 This release

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