On this page
backpack-store
Prev: parse-toml | Up: projects | Next: headless-spreadsheets
Rel: wispsy, Foundation, compose-application
Ref: wispsy on GitHub
Tags: #public #wispsy #project #foundation #tier/standard
Role
Experimental programmable local SQLite store for typed records with explicit codecs, local UUID identity, revision-checked updates, provenance, and relational ApplicationStore models (Python 3.11+, zero runtime deps).
Install
python -m pip install backpack-store==0.2.0
# Optional extras: enforce-type (Python 3.14+), pydantic, moves, host
python -m pip install "backpack-store[enforce-type]==0.2.0"
Quickstart
from dataclasses import dataclass
from backpack_store import Backpack, DataclassCodec
@dataclass(frozen=True)
class Note:
title: str
body: str
with Backpack.open("notes.sqlite") as store:
store.register(DataclassCodec(Note, type_key="notes.note"))
written = store.put(Note("Example", "Local text"), tags=["work"])
note = store.get(written.id)
When to Reach for It
- Storing typed local records or relational SQLite models with revision checks, migrations, and JSONL export.
- Preserving record identity and provenance across local tools and personal automations.
Gotchas & Pitfalls
- Optimistic revision checks: Updates are revision-checked against the record's stored revision—concurrent writers must handle revision conflicts rather than assuming last-write-wins.
- Experimental local SQLite scope: Designed for single-node local SQLite databases (
>=3.11, zero runtime deps), not distributed multi-primary replication. - Explicit codecs required: Custom Python types are not pickled implicitly; register explicit codecs so JSONL exports and schema migrations stay deterministic.
Pairs With
- enforce-type — Preferred Python 3.14+ codec via
backpack_store.enforce_type_codec.EnforceTypeCodec. - compose-application — Composes typed storage with APIs and spatial interfaces.
Metadata
type: project-card
slug: backpack-store
previous_slug: backpack
org: wispsy
repo: wispsy/backpack-store
package: backpack-store
version: 0.2.0
requires_python: ">=3.11"
layer: foundation
topic: wispsy-foundation
status: experimental
language: python
source_docs: README.md, docs/
Linked from
Related notes
- wiki/projects/headless-spreadsheets Linked here; links to this page; shared tags: #foundation, #project, #tier, #wispsy
- wiki/projects/parse-toml Linked here; links to this page; shared tags: #foundation, #project, #tier, #wispsy
- wiki/projects/compose-application Linked here; links to this page; shared tags: #project, #tier, #wispsy
- wiki/stack/foundation Linked here; links to this page; shared tags: #foundation, #tier, #wispsy
- wiki/projects Linked here; links to this page; shared tags: #wispsy
- wiki/projects/enforce-type Linked here; shared tags: #foundation, #project, #tier, #wispsy
- wiki/projects/expose-api links to this page; shared tags: #project, #tier, #wispsy
- wiki/projects/hypnosis links to this page; shared tags: #project, #tier, #wispsy
- wiki/compatibility links to this page; shared tags: #tier, #wispsy
- wiki/families links to this page; shared tags: #tier, #wispsy