Skip to main content

provost

CI PyPI License: GPL-3.0-only REUSE status

Turn command output into data. Run a command, and provost captures its output, auto-detects the format, and files it as a tidy, one-row-per-record dataset in a git-backed store — every capture a commit, every row traceable to its source.

Prototype (proposal 0001) — the simplified successor to the three-binary Envoy suite, as one tool. See docs/0001-rename-and-simplification.md.

Install

pip install provost

The PyPI package (provost) bundles the complete tool — the provost entry point plus its extract/analyze/transform engines — and a thin Python launcher execs it in place. Requires bash and git.

Quick start

provost doctor                   # check engines + store

free -m | provost                # capture stdin → auto-detect → tidy dataset
provost run df -h                # capture a command's output as a commit
provost ls                       # list datasets
provost show df                  # present a dataset (leading #N = row index)
provost source 5                 # the original input behind row #5
provost stats df                 # statistics on the dataset

What it does

run/inject  →  auto-detect (generic parsers + hint rules)  →  tidy melt  →  git-backed store
  • Auto-capture format — ~29 generic format parsers (plus a declarative hints table and a tail of bespoke strategies) recognise JSON, tables, logs, and system-tool output (df, ps aux, free, mount, docker, …).
  • Present a dataset — a wide entry<N>.field extract is melted to one row per record; same-typed captures reconcile into one table.
  • Git core — the store is a git repo; every capture is a commit tagged capture-<id>. provost log lists them, provost restore <id> brings one back up.
  • Provenance — every dataset row has a globally-unique visible #N; provost source N shows the exact captured input that produced it.
  • Global or per-directory — captures go to a global store (~/.provost) by default; provost control <dir> makes a directory its own instance.
  • Portable — provost export bundles the store; provost import reopens it elsewhere. Datasets, history, and provenance all survive the move.
  • Analyze — provost stats <dataset> runs the vendored analyze engine.

Command reference

Command Purpose
provost run [--] <cmd> capture a command's output as a commit
<cmd> | provost / provost [FILE] inject stdin / a file
… --plugin-dir <dir> extra strategy dir for this capture (inject/run)
provost source <#N> original source behind a dataset row
provost control [<dir>] / uncontrol / instances per-directory capture instances
provost export [<file>] / import <file> [<dest>] portable store bundle
provost log / restore <id|latest> capture history / bring one back up
provost ls / show <name> / stats <name> datasets
provost triage low-confidence / unmatched bucket
provost doctor engine + store check

Layout

provost/
├── provost               # the single entry point
├── extract/            # extract engine, ~40 generic + ~130 bespoke strategies, hints.tsv
├── analyze/            # analyze engine
├── transform/          # tidy-melt transform
├── lib/                # shared suite libraries
├── completions/, man/  # bash completion, man page
└── tests/              # smoke + unit tests

Standalone repository

This tree is fully self-contained: provost resolves its engines from its own directory, so it runs with no external dependencies. The extract/, analyze/, transform/, and lib/ trees were originally imported from the Envoy suite but are now first-party provost code, maintained here directly — there is no live tie to upstream Envoy. Add extract strategies under extract/strategies/ and edit the engines in place; run each tree's own test suite to keep it green.

Integrating from another tool

Wrappers that pipe into provost (e.g. deframe) get two hooks:

  • --plugin-dir <dir> (or PROVOST_PLUGIN_DIR): an extra strategy directory that competes in format detection for that capture — no symlink into the engine's ~/.mfe/strategies user dir needed. The winning plugin dir is recorded in the capture's metadata.
  • #% metadata prologue: a leading run of #% lines on injected input is capture context, not data. It is peeled off before detection (so it can never corrupt the generic parsers), stored with the capture as context.txt, and provost source still shows the original input verbatim. A #% line after the first data line is data and passes through untouched — so context no longer has to travel out-of-band in a run manifest.

Environment

Variable Default Meaning
PROVOST_HOME ~/.provost global store directory
PROVOST_WORKSPACE — explicit store override (wins)
PROVOST_MIN_CONFIDENCE 50 commit threshold (0–100)
PROVOST_PLUGIN_DIR — extra strategy dir for detection (same as --plugin-dir)
PROVOST_MAX_INPUT 10485760 max input bytes
PROVOST_LOCK_TIMEOUT 30 seconds to wait for the store lock
PROVOST_RECONCILE_OVERLAP 60 % column overlap to union vs split a variant

Tests

bash provost/tests/smoke.sh              # end-to-end (58 checks)
bash provost/transform/tests/test_melt.sh  # transform unit tests (10 checks)
python -m pytest                       # PyPI launcher (100% coverage enforced)

Metadata

Release files for provost 2.0.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 provost 2.0.0
File Size Uploaded Provenance Actions
provost-2.0.0.tar.gz 824.2 kB With provenance Details for provost-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.4 MB

Release files / provost-2.0.0.tar.gz

Download URL provost-2.0.0.tar.gz
Size 824.2 kB
Tags Source
SHA-256 checksum
How to use checksums
13bebfa09825cad1eba774527e69c7cc688a69607ce64d3899e9850a529cefb9
BLAKE2b-256 checksum
How to use checksums
02ad1c5fa1e3674beeca3d82ff635ba1595bba66e6af212ad9b53b427c41be2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.

Transparency log

Release files / provost-2.0.0-py3-none-any.whl

Download URL provost-2.0.0-py3-none-any.whl
Size 620.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d04d104022a56b1d45fd84f044808965f1f175252e2f139eeacae653f8d7e86
BLAKE2b-256 checksum
How to use checksums
58d46bb41b4867f654ec8f693980d42a0b2c4c1ebb3a8e6353f06a49413955e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.

Transparency log

Security for provost 2.0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for provost-2.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.

Transparency log

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