Skip to main content

Python Checkpointed Local Log

Install from this directory with pip install . or pip install -e ".[dev]". The installed package is cll, including checkpoint, ledger, log, revocation and signing; the command is cll. From the repository root, use pip install ./python. Run tests here with uv run --extra dev pytest.

Decoding untrusted CBOR

cll.cbor.loads decodes one CBOR data item like cbor2.loads, but refuses a map whose keys are distinct in CBOR and equal in Python, such as 1 and true or 0 and false, at any depth. cbor2.loads would keep only the later entry. verify_checkpoint_cose_offline decodes every map it is handed this way.

This departs from draft-mih-scitt-checkpointed-local-log-01, Section 3, in one respect. Claims the verifier does not understand are refused when two of their keys are such a pair, when a key holds a string-reference or value-sharing tag (25, 28, 29, 256), or when a map inside one of them has such keys, although the draft says verifiers MUST ignore claims they do not understand. Go also refuses that statement, and more broadly: it refuses any claim it does not define, which departs from the same sentence (#99).

CLL storage backends

cll.log implements the CLL backend contract shared with Go and TypeScript: the EntrySource, EntryStore, CheckpointStateStore, WitnessStateStore, CheckpointStore and Backend protocols, their values and error classes, and four backends.

Module Backend Lifecycle
cll.log.memory MemoryStore, in process constructor
cll.log.jsonl JSONL v4 journal, single writer (POSIX flock) init(path), open(path)
cll.log.sqlite shared SQLite schema, stdlib sqlite3 init(path, log_id), open(path, log_id)
cll.log.mysql shared MySQL 8 schema, PyMySQL init(url, log_id), open(url, log_id)
from datetime import datetime, timezone
from cll.log import AppendInput, jsonl

jsonl.init("cll.jsonl")
store = jsonl.open("cll.jsonl")
result = store.append(AppendInput(bytes(32), datetime.now(timezone.utc)))
store.close()

The JSONL, SQLite and MySQL formats interoperate with Go and TypeScript: a log any of them writes opens, continues and verifies in the others. The MySQL backend needs the mysql extra (pip install ".[mysql]"); its target is a mysql://user:password@host:port/database URL. Importing cll or cll.log loads no database driver.

cll.log.conformance runs the shared conformance vectors against any backend, including your own; see its module docstring. cll.log.ledger puts the Python-specific LedgerStore behind EntryStore (without bare-identity append) and any LogSource behind EntrySource.

The MySQL tests read CLL_MYSQL_URL and skip when it is unset, except under CI, where they fail.

The authoritative specification and shared vectors live at the repository root. See the repository README for API and trust boundaries.

Metadata

Release files for checkpointed-local-log 0.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for checkpointed-local-log 0.9.0
File Size Uploaded Provenance Actions
checkpointed_local_log-0.9.0.tar.gz 138.5 kB With provenance Details for checkpointed_local_log-0.9.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for checkpointed-local-log 0.9.0
File Interpreter ABI Platform Actions
checkpointed_local_log-0.9.0-py3-none-any.whl Python 3 none any Details for checkpointed_local_log-0.9.0-py3-none-any.whl

Total release size: 295.4 kB

Release files / checkpointed_local_log-0.9.0.tar.gz

Download URL checkpointed_local_log-0.9.0.tar.gz
Size 138.5 kB
Tags Source
SHA-256 checksum
How to use checksums
94095fb8106e99d7695c8a34619abaa2ea70566499d9d14436522082a4931c82
BLAKE2b-256 checksum
How to use checksums
1b26b38595f1fc3db25f138e609ac747927308b7906fe1fae0c3d695e1af4dff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / checkpointed_local_log-0.9.0-py3-none-any.whl

Download URL checkpointed_local_log-0.9.0-py3-none-any.whl
Size 156.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57177a24554398a2d4db42092f277b2c4ba3253afb30a77d8b947c293acb2c88
BLAKE2b-256 checksum
How to use checksums
73c661367a132e97d2c71d6315aff0351a03eca08dc9ef77f677ea3908e1bbd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for checkpointed-local-log 0.9.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for checkpointed_local_log-0.9.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page