Skip to main content

kitsuyui.content_addr

What is this?

kitsuyui.content_addr is a small content-addressable storage package. It stores bytes by a hash of their content, then lets callers retrieve, verify, and delete those bytes by hash value.

The package separates hashing from storage:

  • hashers compute stable content identifiers, such as SHA-256 or MD5
  • stores persist bytes behind those identifiers, such as in memory or on disk
  • HashStore combines a hasher and a store into a simple API

Install

pip install kitsuyui.content_addr

Basic usage

from kitsuyui.content_addr.hash_store import HashStore
from kitsuyui.content_addr.hash_store.dict_store import DictStore
from kitsuyui.content_addr.hasher import SHA256Hasher

store = HashStore(hasher=SHA256Hasher(), base_store=DictStore())

item = b"example item"
hash_value = store.store(item)

assert store.stores(hash_value)
assert store.retrieve(hash_value) == item
assert store.verify(hash_value)

Use DictStore for in-memory storage in tests or examples. Use FileSystemStore when stored bytes should live in a directory on disk.

LICENSE

BSD 3-Clause License

Metadata

Release files for kitsuyui.content-addr 0.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kitsuyui.content-addr 0.8.3
File Size Uploaded Provenance Actions
kitsuyui_content_addr-0.8.3.tar.gz 13.1 kB With provenance Details for kitsuyui_content_addr-0.8.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kitsuyui.content-addr 0.8.3
File Interpreter ABI Platform Actions
kitsuyui_content_addr-0.8.3-py3-none-any.whl Python 3 none any Details for kitsuyui_content_addr-0.8.3-py3-none-any.whl

Total release size: 26.1 kB

Release files / kitsuyui_content_addr-0.8.3.tar.gz

Download URL kitsuyui_content_addr-0.8.3.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
68a0609280f03b58ede967396687cee6d5f3570f123df1de8f484ff53ade5d3d
BLAKE2b-256 checksum
How to use checksums
19b2546e6013e4a3abb915f1dd5cb83dfe2b32dc428c928b547e71d88bc8947c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Release files / kitsuyui_content_addr-0.8.3-py3-none-any.whl

Download URL kitsuyui_content_addr-0.8.3-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45caf6ebf605bda381722f7fc3fd665c2ff110c47382a1e83a3aab7d2639c61b
BLAKE2b-256 checksum
How to use checksums
60714c4f443f42e50cbbc37f0f2119b2726f87f72495834b8b8067356cd26fa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

Security for kitsuyui.content-addr 0.8.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for kitsuyui_content_addr-0.8.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.3 This release

2 release files Full provenance

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