← Pi Portal

py-doc-store

Small SQLite-backed Python library for storing named, interlinked markdown documents with version history.

Snapshot: 555341623ac7612d17c9fbe510e788565b8a7021 · generated 2026-07-10 UTC

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

Design notes

Checksums

py-doc-store-latest.tar.gz
be1566513e185e81ad47d64f5c9cdd7dd1aea3fc49f855ebc3e714dbfb2d032f

py-doc-store-latest.zip
e220180d2014167da2126a3ced0ed98ba4338b7176e974444a763fc1542fe2a8