fontlab_instamix.ledger · declarations 001
Back to fontlab_instamix.ledger
LEDGER_DIR
module-attribute
LEDGER_DIR
LOG
module-attribute
LOG
SAFE_ID
module-attribute
SAFE_ID
check_id
check_id(ext_id: str) -> str
Return ext_id if it is a safe reverse-DNS-like name, else raise.
check_paths
check_paths(data: Path, ext_id: str) -> None
Preflight record, temporary record and log before changing an install.
ledger_dir
ledger_dir(data: Path) -> Path
log
log(data: Path, entry: dict) -> None
Append one JSON line to the install log.
read
read(data: Path, ext_id: str) -> dict | None
Return the install record for ext_id or None.
record_path
record_path(data: Path, ext_id: str) -> Path
records
records(data: Path) -> list[dict]
Return all install records, sorted by id.
remove
remove(data: Path, ext_id: str) -> None
sha256
sha256(path: Path) -> str
write
write(data: Path, record: dict) -> Path
Write record atomically and append it to the log.