PYPI PACKAGE AUDIT v0.3.0a8 Healthy Package

reasonledger

Never lose the why behind AI-written code — decision capture, review, and policy checks

PyPkgScore reasonledger
Methodology & Criteria ♥ Donate
805 / 1000
Quick Install
pip install reasonledger
1. Governance
150/200
2. PEP Metadata
200/200
3. Security
150/200
4. Docs & SEO
105/200
5. CI Engineering
200/200
📣 Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
214
Last 30 days
214
Total (180 days)
214
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 805 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community150 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✓ 50 pts
CONTRIBUTING.md✓ 50 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging200 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✓ 50 pts
3. Security & Supply Chain150 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS Repository✓ 50 pts
4. Documentation, SEO & Ecosystem105 / 200 ▾
Structured README✓ 60 pts
Read the Docs✕ 0 pts
Django Packages✕ 0 pts
Website / Technical Articles✓ 45 pts
5. Engineering, CI & Quality200 / 200 ▾
Automated Tests✓ 65 pts
GitHub Actions CI✓ 65 pts
CHANGELOG.md✓ 35 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✓ 35 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide — reasonledger

PyPI Metadata v0.3.0a8
Show full original documentation (English README) ▾

reasonledger

CI PyPI

Never lose the why behind AI-written code. reasonledger is the command-line surface of ReasonLedger: it captures the decisions behind your codebase as reviewable records, tells you which decision justifies a line, function, or file, and checks changes against a policy in CI.

Everything it manages lives in a .reasonledger/ directory inside your own repo. There is no database, no daemon, no account, and nothing runs in the background.

Alpha (0.3.0a8). Expect rough edges.

Watch the demo

Watch the ReasonLedger demo: init, review in the UI, why

Watch the demo (init, review in the UI, why).

The loop

cd /path/to/your-app
uvx reasonledger init                      # .reasonledger/, the MCP config and the agent rule
uvx reasonledger ui                        # approve what your agent recorded, on 127.0.0.1
uvx reasonledger why payments/retry.py:55  # which decision justifies this line?

why works on a file, a line, or a function:

uvx reasonledger why payments/retry.py             # the whole file
uvx reasonledger why payments/retry.py:55          # one line
uvx reasonledger why payments/retry.py::with_retry # one function

init writes the MCP config and the agent rule for Claude Code, Cursor and VS Code. Your agent then records decisions as it works; each lands as pending until a person approves it in the UI or with reasonledger approve <id>. To keep the command on your PATH:

uv tool install reasonledger
reasonledger --version

To work on ReasonLedger itself, use a checkout of the monorepo (see its docs/install.md).

Backfill from the docs you already have

If you would rather propose decisions from existing docs than wait for your agent, import reads them with a model you configure:

reasonledger config --provider anthropic \
    --model <id> --api-key-env ANTHROPIC_API_KEY
reasonledger import --root . \
    --extracted-by anthropic/<id>          # propose decisions from your docs
reasonledger ui                            # review, confirm, reject — on localhost

import proposes; it never writes to the ledger directly. A human confirms every record that lands — that oversight step is the evidence the product exists to produce. To try the loop with no model account at all, replay a fixture: reasonledger import --fixture candidates.json --extracted-by fixture.

Bring your own model

Extraction uses whichever provider you configure — Anthropic, any OpenAI-compatible endpoint, or a local model. The API key itself is never written to disk. Config stores only the name of the environment variable that holds it, so .reasonledger/config.yml is structurally incapable of leaking a secret.

An Anthropic Console API key is billed separately from a Claude Pro/Max subscription.

reasonledger ui

A localhost review app, stdlib-only, bound to 127.0.0.1. It starts when you run the command and stops when you press Ctrl-C — it is not a service. The UI ships inside this package; only the .reasonledger/ data lives in your repo.

It is a per-developer, per-repo tool. There is no hosted team layer yet: teams share decisions through git.

Console scripts

reasonledger and the short alias rl are the same entry point.

Extras

uv tool install "reasonledger[embeddings]"   # real embeddings for conflict detection

Without the extra, conflict detection uses a deterministic stub embedder — fine for tests and demos, noisier on real prose.


Part of the ReasonLedger workspace: reasonledger-core (domain logic) · reasonledger-mcp (editor-spawned MCP server).