Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

chronist

Latest version: v0.3.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: ASFaust2
0 Stars
0 Forks
7 Versions
469 Downloads
Python Repo language

Scan summary

chronist was last scanned on 29 Nov 2026 at version 0.3.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 5 were published within 3 days (27–29 Nov 2026).
  • Findings: No rules fired in version 0.3.1.
  • Downloads: 469 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.1 LATEST 29 Nov 2026 No rules fired
0.3.0 29 Nov 2026 No rules fired
0.2.1 27 Nov 2026 No rules fired
0.2.0 27 Nov 2026 Not shown
0.1.2 27 Nov 2026 Not shown

No rules fired in 0.3.1

Findings

Findings for v0.3.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.3.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

chronist

A lightweight, self-hostable experiment tracker for ML research: log training runs, compare learning curves, and read data back in Python for custom plots. One pip install, single user, runs on a laptop or on a small VPS.

The design rules come from problems with other tools (see docs/SPEC.md): the server is the only process that writes storage, plots are always downsampled on the server, and the query language never evals Python.

pip install chronist            # extras: [pandas], [polars], [export] (pyarrow), [all]
pip install -e ".[dev]"        # from a checkout, for development

Logging

import chronist

run = chronist.init(project="bptt-free", name="lstm-seed0",
                    config={"model": {"arch": "lstm"}, "optim": {"lr": 3e-4}, "seed": 0},
                    tags=["baseline"])
for step in range(100_000):
    loss = ...
    run.log({"loss": loss, "train": {"acc": acc}}, step=step)   # -> keys "loss", "train/acc"
    run.log({"eval/return": ret}, step=step, every=1000)         # optional throttling
run.finish()                                                     # or: with chronist.init(...) as run:
  • log() only appends to a local file ($CHRONIST_DIR/runs/<uid>/, default ~/.chronist) and never touches the network, so it cannot block training. A background thread uploads batched, gzip'd msgpack chunks. If the server is down, data stays buffered and the uploader retries with backoff.
  • No server configured → offline: only local files. Upload later with chronist sync (same code path as the live uploader).
  • Config: CHRONIST_URL, CHRONIST_DIR, CHRONIST_PROJECT (and optionally CHRONIST_TOKEN; normally the saved login is used, see "Viewing").
  • Captured automatically: git commit/branch/remote, dirty flag + diff hash (the diff itself is kept in the run dir as diff.patch), command line, cwd, hostname, Python version, start time.
  • Heartbeats while running; finish() sets the status; an uncaught exception marks the run crashed; a run that stops heartbeating is marked crashed by the server (default after 180 s).
  • Resume: chronist.init(resume="<uid>") re-attaches and continues at the next step. Resuming from an earlier checkpoint: chronist.init(resume="<uid>", rewind=5000) discards everything the run logged at step ≥ 5000 and continues there. Without rewind, values at already-logged steps are ignored (first write wins), and the client warns the first time you log one.
  • Cleanup: once a finished run is fully on the server (points, finish record, code), its local buffer and now-unneeded local blobs are deleted, after finish() or chronist sync. Set CHRONIST_KEEP_LOCAL=1 to keep them; chronist prune removes older ones.

Histograms

run.log({"weights/layer1": layer.weight}, step=t)               # >1 element -> histogram (64 bins)
run.log({"grad/l1": chronist.Histogram(g, bins=128)}, step=t)  # explicit
run.log({"returns": chronist.Histogram(r, raw=True)}, step=t)  # exact values (<= 10k)
run.configure_histograms("weights/*", range=(-1, 1))           # fixed range + under/overflow
chronist.init(histogram_bins=32, auto_histograms=False)         # run default / strict mode
  • Each record holds the exact stats over finite values (count, mean, std, min, max), NaN/±Inf counts, and bin counts. The bin range is adaptive (this step's min/max) by default, or a fixed range. Torch tensors are reduced on their own device; only the stats and bins come back to the host.
  • Bins: Histogram(..., bins=) > the last matching configure_histograms pattern > init(histogram_bins=) > 64 (max 1024).
  • About 300 B per record: log them every N steps (run.log(..., every=100)).
  • Cell histograms (format="cells") are an alternative to bins: about 50 B per record on disk instead of 200, empty space stays empty and outliers stay where they are. Set it per call (chronist.Histogram(x, format="cells")), per pattern (configure_histograms("grad/*", format="cells")) or per run (init(histogram_format="cells")). Lossy in a controlled way (min, max, mean, std and counts are kept; up to 32 values are kept exactly); edges/counts still work on read-back. Computed on the CPU, so a GPU tensor is copied to the host (bins are computed on the device). Needs a server at least as new as the client, and a data directory holding cells can't be read by older versions. Details and limits: docs/HISTOGRAM_COMPRESSION.md.
  • Budgets bound long runs: configure_histograms("grad/*", budget=4096) (or init(histogram_budget=)) keeps between 4096 and 8192 evenly spaced records per key however long the run; each time the count doubles, every other record is dropped. Steps that look unusual (NaN/Inf appearing, a min or max well outside the previous kept step) are kept anyway. The client only computes records it will keep, so logging every step stays cheap. A 1M-step run takes about 0.6 MB per key with cells (50 MB without a budget).
  • Views: a heatmap (step × value) with a robust value range (0.5–99.5% quantiles, so heavy tails don't flatten it; "full range" toggles min–max), quantile bands, stats lines, and a single step with a slider. Over many steps the server subsamples whole records evenly (never merges them).
  • Read-back: runs.histograms("grad/l1", max_steps=200) (DataFrame with edges/counts arrays), run.histogram("grad/l1", step=5000) (nearest step at or before), run.histograms(key).to_dense(rows=128).
  • A rewind also discards histogram records.

Files (checkpoints, plots, outputs)

run.save_file("checkpoints/model.pt", step=t, aliases=["best"], metadata={"val_loss": 0.21})
run.save_file("plots/curve.png", kind="plot")
run.save_file("ckpt.pt", step=t, move=True)              # or link=True (hard link; never modify in place)
run.save_object(model.state_dict(), name="model", step=t) # torch.save if torch is loaded, else pickle
run.configure_files("model", keep_last=3, keep_every=100_000)

r = chronist.run(42)
r.files()                                           # name, version_id, step, kind, size, aliases, metadata
r.download("model", alias="best", dest="./ckpt/")   # default alias: latest
r.load_object("model", step=200_000)
chronist pull <run> <name> [--alias A | --step N | --version V] [--dest DIR]
  • Content is captured when you call save_file, so overwriting model.pt afterwards is fine. A background thread splits it into 8 MiB content-addressed chunks (compressed only if that saves ≥ 5%). Identical files and chunks are stored once.
  • Uploads only send chunks the server lacks, are resumable, and run after metrics in each upload round, so checkpoints never delay metrics. CHRONIST_UPLOAD_MBPS caps the bandwidth. Offline runs upload with chronist sync.
  • latest moves automatically; other aliases move when reassigned (UI or PATCH .../files/<name>/aliases). Retention keeps the newest keep_last versions plus the first in each keep_every-step window, and aliased versions are always kept. Dropped versions' chunks are freed by GC.
  • Server limits: --max-blob-storage 50GB (warns at 80%; at 100% new file uploads are refused, but metrics keep working), --max-file-size (default 20 GB), --blob-dir to put blobs on another volume.
  • Downloads verify sha256 and cache chunks in ~/.cache/chronist (CHRONIST_CACHE), so repeated or interrupted downloads only fetch what's missing. GET /api/files/<version>/download serves the whole file with HTTP Range support. Read-only share tokens can download files.
  • Reverse proxies: chunk uploads are ≤ 8 MiB plus a few bytes; with nginx, set client_max_body_size 16m (Caddy has no default limit).
  • The UI's Run tab has a Files section: versions grouped by name, aliases, metadata, download, and for owners set/move alias and delete.

Differences from the spec in docs/HISTOGRAMS_FILES.md:

  • Blob GC is the server's mark-and-sweep (daily, chronist gc) over code and file manifests. It isn't in MetricStore.maintain(), and nothing deletes blobs directly.
  • Quota is checked when a file upload starts (blobs/missing with purpose: "file"), not on every blob PUT, because blob uploads are shared with code snapshots.
  • File chunks are served via /api/files/<version>/chunk/<i>, not the blob endpoint, so read-only share links work without code access.

Code snapshots

Each project numbers its code: code.version is 1 for the first snapshot and counts up when the snapshot's files change, so runs with equal numbers ran the same files (reverting gives the old number again; environment and packages don't count, and neither do files the snapshot skips). Use it in filters (code.version >= 2), as a run table column, to group or color plots, and in the UI's Code Diff tab, which shows two versions side by side. Numbers are given in the order the server sees the code and are never reused; snapshots stored before versions existed are numbered by run creation date when the data dir is migrated to version 3. Share links without code access see none of this.

Every run records exactly which code ran, including uncommitted and untracked files (details: docs/CODE_SNAPSHOTS.md).

chronist.init(code="auto")      # default: git root, else nearest pyproject/setup.py, else the script's dir
chronist.init(code="git")       # git root; error if not in a repo
chronist.init(code="../..")     # relative to the entry script's directory (not the cwd)
chronist.init(code=None)        # off
chronist.init(code=chronist.Code(root=2, exclude=["data/"], max_total_mb=50, env_vars=["CUDA_VISIBLE_DEVICES"]))
  • Precedence: the code= argument, then CHRONIST_CODE, then [tool.chronist] code = ".." in pyproject.toml or .chronist.toml (relative to that file), then auto.
  • Selection: git ls-files (tracked + untracked-not-ignored, including submodules), .gitignore via pathspec outside git, .chronistignore, and a built-in deny list. Checkpoints, data, venvs and secrets like .env, *.key and id_rsa are never included. Files over 1 MB, binary files, and anything past 50 MB total are skipped, and every skip is recorded with its reason.
  • Content is hashed and copied into ~/.chronist/blobs (content-addressed, compressed) inside init(), so later edits or os.chdir don't affect it. Uploads send only the blobs the server lacks, so 1000 runs of the same repo cost almost nothing.
  • Also stored: the package list, Python, platform, host, GPU, torch/CUDA versions, the command line, and git info. Env vars are recorded only if listed in env_vars.
  • Modules imported from outside the code root (e.g. via sys.path.append) are reported at init and finish and flagged ⚠ in the UI.
chronist checkout <run> [dir]        # restore the tree (+ CHRONIST_RUN.json)
chronist code diff <run_a> <run_b>   # changed files (unified diff) + config diff
chronist snapshot [--code ..] [--run ID]
r = chronist.run(42)                 # or a uid
r.code.files(); r.code.read("src/model.py"); r.code.checkout("/tmp/x")
chronist.code_diff(41, 42)

The UI's Run tab has a Code section: a file browser with a syntax-highlighted viewer, root/mode info, the skip report, and environment and package lists.

Viewing

Local: chronist ui starts the server on localhost:7070 (no auth) and opens the browser. It also watches ~/.chronist and live-syncs offline runs, so locally you don't need CHRONIST_URL at all.

Remote: on the VPS:

chronist serve --host 127.0.0.1 --port 7070

On the first start it asks you to choose the password of the admin account (stored only as a scrypt hash in <data>/users.json). Without a terminal (systemd, Docker), set it beforehand with chronist passwd --data <dir>, or pass CHRONIST_PASSWORD for the first start. chronist passwd [--user NAME] [--revoke-sessions] changes a password later, and a running server picks the change up immediately. --no-auth turns protection off (and shows everyone's data).

Accounts: every user sees only their own projects, runs, filters and share links; project names only need to be unique per user. People create their own account in the login dialog with the invite password, which the admin sets in the UI (Users) or with chronist users invite (--off closes sign-up; without an invite password nobody can sign up). The admin also lists accounts, resets passwords and removes accounts there, or with chronist users list|add|remove; a removed account's runs stay on the server. Data from before accounts (data version 3 and older) belongs to the admin, and the old server password becomes the admin's password.

Put Caddy in front for TLS (Caddyfile):

chronist.example.org {
    reverse_proxy 127.0.0.1:7070
}

Logging in: the browser asks for your user name and password. On machines that log runs, set CHRONIST_URL=https://chronist.example.org. The first chronist.init() (or chronist.runs(), chronist sync, ...) in a terminal or notebook asks for them once (the name can come from CHRONIST_USER) and saves a token in ~/.config/chronist/credentials.json. Clients only ever keep that per-machine token, never the password. For cluster jobs that can't prompt, run chronist login https://chronist.example.org --user NAME once on the login node; jobs sharing that home directory find the token. chronist logout revokes it. Repeated wrong passwords are throttled, per client address and per user name (behind a proxy on the same machine, the address comes from X-Forwarded-For as uvicorn reads it). Tokens still work directly too (CHRONIST_TOKEN, --token), e.g. for CI.

Sharing: the UI's Share button (shown when you're logged in) creates a short read-only link to the current view, https://<server>/<10 characters>; the server stores the view and the link's token, and it sees only your data. Share code as well is off by default. Without it, the link's token can't read code snapshots (manifests, files, blobs, snapshot metadata) through the UI, the API or Python. Links are listed and revocable in the same dialog and take effect immediately. CLI equivalent: chronist tokens --new read [--code] [--label L], chronist tokens, chronist tokens --revoke <id>. A server in local no-auth mode can't share, because anyone who can reach it sees everything.

UI

The project list and the run table show how much storage each takes up (its metrics, histograms, files and code; database overhead not included). A run counts everything it references; a project counts shared files and code once. Also as GET /api/sizes[?project=..].

Tabs: Projects (pick one), Run (one run in detail), Comparison Plots, Code Diff and Run Table.

Comparison Plots has a side panel (drag its edge to resize) with a filter and every run it matches. Each run's eye decides whether the plots show it; the eye is stored per run on the server, so it holds in every filter and browser ("show all" / "hide all" change it for the filter's runs). Line panels draw the first 100 shown runs, grouped panels up to 1000.

Run Table is for managing runs: its own filter (independent of the plots), the filtered runs as a table with an eye column, and tick boxes for Tag, Delete and Export selected runs. Ticks only cover runs the table shows, so these never reach runs you can't see.

Every filter used for a moment, in either tab, is saved on the server per project; Recent lists them, newest first. Share links can load them and click eyes for themselves, but save nothing. Clicking a run's name opens it in the Run tab: status, tags, notes, config, latest values and git/command details, beside every metric it logged (one panel each, grouped by / prefix where a prefix has several), its histograms, files and code.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases chronist

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229