CultLib/packages/cultcache-py/src/cultcache_py
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Meta Vens 5967a1f25d Give every cultcache-py document type one home store
Cut 5 (Python). stores_by_type maps each type to one store and generic_stores
becomes a single generic_store. add_backing_store raises on a type already
claimed and add_generic_store on a second generic store; a refused
registration claims nothing.

_stores_for_type and _all_specific_stores are deleted. _store_for_type returns
the home store and raises when stores are attached but none is home to the
type. It returns None only for a cache with no stores, which the contract
keeps as an in-memory cache. put, put_envelope, put_envelopes and delete each
write one store; pull_all_backing_stores pulls each distinct store once.

Tests: test_second_generic_store_rejected, test_type_claimed_twice_rejected,
test_types_route_to_home_store. No bytes change.

Version 0.2.0 -> 0.3.0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-14 00:37:31 +02:00
..
__init__.py Add Python CultCache wire parity package 2026-06-13 20:35:58 +01:00
backing_store.py Add Python CultCache wire parity package 2026-06-13 20:35:58 +01:00
cache.py Give every cultcache-py document type one home store 2026-09-14 00:37:31 +02:00
documents.py Cache Python document schema catalogs 2026-06-14 01:43:14 +01:00
interop.py Add Python CultCache wire parity package 2026-06-13 20:35:58 +01:00
py.typed Mark Python runtime package typed 2026-06-13 22:36:12 +01:00
stores.py Recover schema-stamped cache records across runtimes 2026-06-27 14:34:53 +01:00