runlog-schema (Python)
Canonical Runlog schemas (entry + session manifest) packaged for
Python. Mirrors the Go module
github.com/runlog-org/runlog-schema so Python
consumers don't need to do filesystem-path arithmetic against a
sibling clone.
Part of the Runlog project. The canonical YAML lives at the repo root (
entry.schema.yaml,manifest.schema.yaml); this package bundles a CI-gated copy underrunlog_schema/_data/.
Install
Once published to PyPI (separate slice):
pip install runlog-schema
For now, install from the source tree:
pip install ./generators/python # from runlog-schema repo root
Use
from runlog_schema import (
entry_schema_yaml,
manifest_schema_yaml,
entry_schema_json,
manifest_schema_json,
schema_version,
SCHEMA_VERSION,
)
# Raw YAML bytes (the canonical source form):
entry_yaml = entry_schema_yaml()
# JSON bytes for libraries that don't accept YAML
# (e.g. `jsonschema.Draft202012Validator`):
import json
from jsonschema import Draft202012Validator
doc = json.loads(entry_schema_json())
Draft202012Validator.check_schema(doc)
assert schema_version() == SCHEMA_VERSION == "0.1.0"
API parity with the Go module
| Go | Python |
|---|---|
EntrySchemaYAML() []byte |
entry_schema_yaml() |
ManifestSchemaYAML() []byte |
manifest_schema_yaml() |
EntrySchemaJSON() |
entry_schema_json() |
ManifestSchemaJSON() |
manifest_schema_json() |
SchemaVersion() string |
schema_version() |
SchemaVersionConst |
SCHEMA_VERSION |
Both modules compile from the same canonical YAML files at the repo
root. Commit-time CI ensures the bundled copies under
runlog_schema/_data/ match those canonical files byte-for-byte; if
you edit either schema, run:
cd generators/python
./scripts/sync_schemas.sh
…then commit the updated _data/ copies alongside your schema edit.
Develop
cd generators/python
# Editable install with test extras:
uv pip install -e '.[test]' # or: pip install -e '.[test]'
# Run the tests:
pytest -v
Python ≥3.10 is supported (matches the server's pinned floor; 3.12 is
what production runs). The package uses
importlib.resources.files(), stable since Python 3.9.
Build backend
hatchling — the modern uv-friendly
default. See pyproject.toml.
License
Apache-2.0 — same as the canonical schemas. See ../../LICENSE.
Metadata
Release files for runlog-schema 0.5.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 |
|---|---|---|---|---|
| runlog_schema-0.5.0.tar.gz | 21.4 kB | With provenance | Details for runlog_schema-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| runlog_schema-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for runlog_schema-0.5.0-py3-none-any.whl |
Total release size: 42.2 kB
Release files / runlog_schema-0.5.0.tar.gz
| Download URL | runlog_schema-0.5.0.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93e94aff7e25407b17597d78e93a893efd3e3d7b2eae19165c1e2401b192c910
|
|
BLAKE2b-256 checksum How to use checksums |
bf44dee2ff0d4a64fef5558af43dc8ec13fd0d100e9eb6e1aa3759f33c327c0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 12, 2026.
Transparency logRelease files / runlog_schema-0.5.0-py3-none-any.whl
| Download URL | runlog_schema-0.5.0-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e026b55239362525bd822187a35803e72acbe3fcb5c86dcaeacfe833f7373b9f
|
|
BLAKE2b-256 checksum How to use checksums |
68c3a7982d4af18503f6e51b343a8d1705253cd972aa8b053d6c41dbe6db20eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 12, 2026.
Transparency logSecurity for runlog-schema 0.5.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 runlog_schema-0.5.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 May 12, 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.