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.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| checkpointed_local_log-0.8.0.tar.gz | 135.8 kB | With provenance | Details for checkpointed_local_log-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| checkpointed_local_log-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for checkpointed_local_log-0.8.0-py3-none-any.whl |
Total release size: 290.1 kB
Release files / checkpointed_local_log-0.8.0.tar.gz
| Download URL | checkpointed_local_log-0.8.0.tar.gz |
|---|---|
| Size | 135.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd7d6235afa691cf70feb3662d6d0d23591813178e719f39f306f4824b8d0063
|
|
BLAKE2b-256 checksum How to use checksums |
f31690251e05e27a7619e10dd6df4f51dc77a68750ff7ec01f59b731f94a2575
|
| 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 Oct 30, 2026.
Transparency logRelease files / checkpointed_local_log-0.8.0-py3-none-any.whl
| Download URL | checkpointed_local_log-0.8.0-py3-none-any.whl |
|---|---|
| Size | 154.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5be40785bbaa86ec70c44c2606cf1082b175f57e153bc46ef18ff68d28ae81b9
|
|
BLAKE2b-256 checksum How to use checksums |
4412328a7300679a9ce2298d1daaa18e5bf524b1327948d50c304a80189954cb
|
| 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 Oct 30, 2026.
Transparency logSecurity for checkpointed-local-log 0.8.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.
Attestation for checkpointed_local_log-0.8.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 Oct 30, 2026.
Transparency logA 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.