RunLedger
A zero‑instrumentation experiment registry.
Point RunLedger at a folder of JSON experiment files and search, filter, aggregate, diff, and export the results — no SDK, no code changes, no cloud.
Most experiment trackers make you instrument your training code before they can help you. RunLedger reads the JSON you're already writing (no wandb.init(), no mlflow.log_metric()) and indexes it in real PostgreSQL, giving you full relational search: structured comparisons, full‑text, fuzzy matching, and exact array‑element lookups, from one CLI command.
Backed by Postgres, served by a Spring Boot API, fronted by a Python CLI.
Install
pip install runledger-cli
You need Docker — the only required dependency beyond Python. The backend (Postgres + the Java API) runs entirely inside Docker containers. runledger starts and stops them automatically; you never touch a database, a server, or a config file. If Docker isn't installed, the CLI detects that on first run and links you straight to the installer.
Troubleshooting: command not found
Windows – `runledger` not recognized
On some Windows systems the Python Scripts folder is not automatically added to PATH. Two options:
-
Add the Scripts folder to PATH permanently (recommended):
- Find the install location:
pip show runledger-cli | findstr Location - Navigate to that folder, then up one level to the
Scriptsdirectory. - Add that
Scriptspath to your system PATH via System Properties > Environment Variables. - Restart your terminal.
- Find the install location:
-
Use the Python module fallback (works immediately, no PATH changes):
python -m cli.ledger
All subcommands and the guided wizard work exactly the same way.
Once PATH is configured, runledger works as shown in the examples below.
Fedora / RHEL – Backend can't reach PostgreSQL (UnknownHostException)
Fedora's firewalld can block Docker's internal bridge networking, causing the app container to fail DNS resolution for postgres. Fix:
sudo firewall-cmd --zone=trusted --add-interface=docker0 --permanent
sudo firewall-cmd --reload
sudo systemctl restart docker
Then try runledger guided again. If you still see a port conflict (port is already allocated), check if another process is using port 5432 (sudo ss -tulpn | grep 5432) and either stop it or change the host port mapping in the CLI's compose file.
Installing from source
git clone https://github.com/ahmedrafatcse/run-ledger.git
cd run-ledger
docker compose up -d
pip install -e .
Quick start
runledger scan ~/experiments --batch my-sweep
runledger search --metric accuracy --op gt --value 0.9 --batch my-sweep
runledger aggregate --metric accuracy --agg AVG --group-by experiment --batch my-sweep
New here? Run runledger with no arguments, the guided wizard walks you through your first scan and search.
Tip: you can also use
python -m cli.ledgerinterchangeably withrunledgeron any platform.
Features
- Search any field, no schema required — structured comparisons (
gt,lt,eq…), full‑text with stemming, and fuzzy matching for typos, all on arbitrary dot‑paths, including fields nested inside arrays (results[].sst2_cacc). - Compound AND/OR across multiple conditions in one query.
- Exact match pointers — array searches tell you exactly which element(s) matched (
results[3].sst2_cacc = 0.933), not just that the run did. - Aggregates & group‑by —
AVG/MAX/MIN/SUM/COUNT, straight from the CLI. - Safe re‑scanning — ingestion is idempotent; a changed file gets a new version, and
diff --historyshows you what changed and when. - Run diff, saved searches, JSONL ingestion, block‑depth control — see docs/examples.md for each in action.
- Self‑hosted, local‑first — your data never leaves your machine.
Metric paths
Address any value with a dot‑path — accuracy, metrics.loss, results[].sst2_cacc. Shorthand (cacc) resolves automatically when unambiguous. Run runledger metrics --batch <batch> to see everything discovered in a scan, or add --verbose for full paths.
Docs
License
MIT
Metadata
Release files for runledger-cli 0.1.6
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 |
|---|---|---|---|---|
| runledger_cli-0.1.6.tar.gz | 32.6 kB | Without provenance | Details for runledger_cli-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| runledger_cli-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for runledger_cli-0.1.6-py3-none-any.whl |
Total release size: 68.6 kB
Release files / runledger_cli-0.1.6.tar.gz
| Download URL | runledger_cli-0.1.6.tar.gz |
|---|---|
| Size | 32.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39a81815f968fb50bc41af383163e3305c8b2f9ba6e5794cd275e292e42fdd49
|
|
BLAKE2b-256 checksum How to use checksums |
d27404b34d4bf0342abf3cec6645150356573d631b3f76887ff175caa5583403
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / runledger_cli-0.1.6-py3-none-any.whl
| Download URL | runledger_cli-0.1.6-py3-none-any.whl |
|---|---|
| Size | 36.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aef82622d29f1b42198613c7e2b5a6e11acf75d94f76bd792737e77b23255b63
|
|
BLAKE2b-256 checksum How to use checksums |
29d43c73fd17b50e742cdbf0200a86f4d7bec6fcfecdc8b3d1f6613f1db482ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for runledger-cli 0.1.6
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.