Skip to main content

noddit

Write progress as JSON Lines — one small JSON object per step, appended to a plain file — so anything watching that file from outside (a terminal UI, a CI step, a dashboard) can show a live "3823/10011 · 2 failed" without you building a protocol for it.

Pure standard library, no dependencies, Python 3.10+. MIT licensed.

pip install noddit

As a library

import noddit

events = noddit.progress_events("run.jsonl")
events.start(total=len(jobs), label="processing widgets")
for i, job in enumerate(jobs, start=1):
    run(job)
    events.step(done=i, total=len(jobs))
events.finish(ok=True, summary=f"{len(jobs)} widgets done")

Every call appends exactly one JSON line and never raises: a write that can't happen (missing directory, full disk, read-only mount) is swallowed, with one warning on stderr the first time it happens. See docs/progress-events.md for the exact fields each event carries.

As a pytest plugin

Installing noddit registers a pytest plugin that mirrors a test run the same way — but it writes nothing unless you ask:

pytest --noddit-events run.jsonl
# or
NODDIT_EVENTS=run.jsonl pytest

With neither flag nor environment variable set, the plugin does nothing at all — a plain pytest run, -q, or any other output format is unaffected.

Each test counts once (start after collection with the total, one progress line per test as it finishes, finish with pass/fail/skip counts and up to 50 failing test names), and running under pytest-xdist only the controller process writes — never one line per worker.

{"v": 1, "type": "start", "total": 3, "label": "pytest", "ts": 1732000000.0}
{"v": 1, "type": "progress", "done": 1, "total": 3, "passed": 1, "failed": 0, "skipped": 0, "nodeid": "tests/test_x.py::test_a", "outcome": "passed", "ts": 1732000000.4}
{"v": 1, "type": "progress", "done": 2, "total": 3, "passed": 1, "failed": 1, "skipped": 0, "nodeid": "tests/test_x.py::test_b", "outcome": "failed", "ts": 1732000000.9}
{"v": 1, "type": "finish", "ok": false, "exitstatus": 1, "passed": 2, "failed": 1, "skipped": 0, "failed_nodeids": ["tests/test_x.py::test_b"], "duration_s": 1.21, "summary": "2 passed, 1 failed in 1.21s", "ts": 1732000001.2}

Who reads this

This is the same event format the nod CLI follows with nod progress --from-file run.jsonl (auto-detected) and nod run <id> -- pytest … (which also sets NODDIT_EVENTS for you) — but nothing here depends on nod. Any reader that follows the file and understands start/progress/finish works.

Development

cd python
python -m venv .venv && . .venv/bin/activate
pip install -e ".[test]"
pytest
python -m build
twine check dist/*

Metadata

Release files for noddit 0.1.0

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

Source distribution (sdist)

Source distribution for noddit 0.1.0
File Size Uploaded Provenance Actions
noddit-0.1.0.tar.gz 11.5 kB Without provenance Details for noddit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for noddit 0.1.0
File Interpreter ABI Platform Actions
noddit-0.1.0-py3-none-any.whl Python 3 none any Details for noddit-0.1.0-py3-none-any.whl

Total release size: 20.5 kB

Release files / noddit-0.1.0.tar.gz

Download URL noddit-0.1.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6e9070990c20bfc2f1612730a156bb9e04c2f9118fc769efaedb847ca7b1065f
BLAKE2b-256 checksum
How to use checksums
69d46b55b0a96c4fc13a38076ed6066eab3477e9dbb3239b647150b2ee29876b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / noddit-0.1.0-py3-none-any.whl

Download URL noddit-0.1.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24eb4c7c1eafc24c2c7a906f3046329bc9923f5fd3873ce1f576b26137839646
BLAKE2b-256 checksum
How to use checksums
ae6fb05c5acba80bcbb92c16a759b88420afbdec4b16e1e57133c5474bc7388c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for noddit 0.1.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.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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