py-doc-store
Small SQLite-backed Python library for storing named, interlinked markdown documents with version history.
Install
tar -xzf py-doc-store-555341623ac7.tar.gz
cd py-doc-store
pip install .
Usage
from docstore import DocStore
store = DocStore("/tmp/docs.sqlite")
store.write("france", "France are elite")
store.write("england", "England often struggle with [[france]]")
blob_hash, body = store.read("england")
historic = store.read_at("england", blob_hash)
Public API
DocStoreBrokenLinkErrorcurrent_hash(name)versions(name)
Design notes
- One SQLite file per store.
blobsis content-addressed storage keyed by SHA-256 ofbody_md.document_logis append-only and records writes plus deletion events.- Links use
[[name]]syntax and are validated on write. - The library is module-only; no CLI.
Checksums
py-doc-store-latest.tar.gz
be1566513e185e81ad47d64f5c9cdd7dd1aea3fc49f855ebc3e714dbfb2d032f
py-doc-store-latest.zip
e220180d2014167da2126a3ced0ed98ba4338b7176e974444a763fc1542fe2a8