Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

reasonledger-core

CI PyPI

Framework-free domain logic for ReasonLedger — the audit-critical heart shared by the CLI and the MCP server.

This is a library. Most people want reasonledger (the CLI) instead; install this directly only if you are building your own surface on top of the same domain model.

What's in it

Area What it does
decisions The Decision record format — frontmatter parse/write, round-trip, on-disk layout
importer Bring-your-own-model extraction, propose-and-confirm staging, connection probe
reasoning why resolution, conflict detection, staleness watchers, pluggable embeddings
views build_ledger_view — a read-only projection of a repo's .reasonledger/ state
policy Policy evaluation for CI gates
privacy The PII linter
provenance AI-authorship signals read from commit metadata

No web framework, no ORM session, and no I/O beyond the files it is pointed at — so the same implementation backs every surface rather than being reimplemented per app.

Design properties worth knowing

  • Secrets are structurally excluded. ExtractorConfig has no field capable of holding a raw API key — only the name of the environment variable that supplies one.
  • Views never write. build_ledger_view re-evaluates watcher conditions on read; it cannot modify a decision file.
  • Deterministic by default. Embeddings resolve to a deterministic stub unless the local model is enabled, so tests and CI need no network and no model. Embeddings never use the network.

Requirements

Python 3.12+.

# --pre: every release is a pre-release for now, and pip skips those unless told otherwise
pip install --pre reasonledger-core
pip install --pre "reasonledger-core[embeddings]"   # real embeddings via fastembed

Metadata

Release files for reasonledger-core 0.3.0a8

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

Source distribution (sdist)

Source distribution for reasonledger-core 0.3.0a8
File Size Uploaded Provenance Actions
reasonledger_core-0.3.0a8.tar.gz 236.5 kB Without provenance Details for reasonledger_core-0.3.0a8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reasonledger-core 0.3.0a8
File Interpreter ABI Platform Actions
reasonledger_core-0.3.0a8-py3-none-any.whl Python 3 none any Details for reasonledger_core-0.3.0a8-py3-none-any.whl

Total release size: 449.9 kB

Release files / reasonledger_core-0.3.0a8.tar.gz

Download URL reasonledger_core-0.3.0a8.tar.gz
Size 236.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2a8cd925acae7d3d6583f71a128c1f0a5a2cd07b9133b2d34d2b0f5979c2bb1f
BLAKE2b-256 checksum
How to use checksums
01a5d3d5c3118d6ef212311d44e3ffe3d34ee536171433d158da17973da9507a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / reasonledger_core-0.3.0a8-py3-none-any.whl

Download URL reasonledger_core-0.3.0a8-py3-none-any.whl
Size 213.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7a4d96b104f70b7f2c57fef57029e3874894d7b6bc4ec39aa362aba00c2666a
BLAKE2b-256 checksum
How to use checksums
2b70fd14cf4283adace08d7c2a312ea4a5188311a413056836097e9cedf01212
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for reasonledger-core 0.3.0a8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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