Skip to content

fontlab_instamix.ledger

ledger

Install records: Extensions/.instamix/<id>.json plus a JSONL log.

The ledger lives outside Extensions/Library, which holds only installed extension copies.

A record lists every path instamix created for one extension, with a kind (link, copy or dir) and, for copies, a SHA-256, so uninstall removes exactly those and leaves anything the user changed.

Classes

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
LEDGER_DIR attribute
LOG attribute
SAFE_ID attribute
check_id function (ext_id: str) -> str Return <code>ext&#95;id</code> if it is a safe reverse-DNS-like name, else raise.
check_paths function (data: Path, ext_id: str) -> None Preflight record, temporary record and log before changing an install.
ledger_dir function (data: Path) -> Path
log function (data: Path, entry: dict) -> None Append one JSON line to the install log.
read function (data: Path, ext_id: str) -> dict | None Return the install record for <code>ext&#95;id</code><code> or </code><code>None</code>.
record_path function (data: Path, ext_id: str) -> Path
records function (data: Path) -> list[dict] Return all install records, sorted by id.
remove function (data: Path, ext_id: str) -> None
sha256 function (path: Path) -> str
write function (data: Path, record: dict) -> Path Write <code>record</code> atomically and append it to the log.