Skip to main content

hepyy-workflows

An explicit HEP workflow package. SPECS.md defines the full project; this checkout currently implements milestones 1 through 6. The package name is hepyy_workflows and the CLI is hwf. Python 3.10+ is required.

The package provides Arrow dataset/source contracts, strict public reader and recipe schemas, a starter project, and bounded inspect/draft/validate/preview workflows for Parquet, ROOT TTrees, explicit HDF5 layouts, and HepMC3 ASCII. Recipes now run generic views, selections, histograms and cutflows and export a standalone file-analysis runner, self-contained reports, and local web/terminal authoring tools.

henv -n YOUR_ENV -x python -m pip install -e '.[dev]'
henv -n YOUR_ENV -x python -m pytest

Create a starter project from any directory (choose a destination that does not yet exist):

henv -n YOUR_ENV -x hwf project init /path/to/my-analysis
cd /path/to/my-analysis
henv -n YOUR_ENV -x hwf schema validate reader reader.yaml --json
henv -n YOUR_ENV -x hwf schema validate recipe recipe.yaml --json
henv -n YOUR_ENV -x hwf reader inspect data/particles.parquet --json
henv -n YOUR_ENV -x hwf reader validate reader.yaml --input data/particles.parquet --json
henv -n YOUR_ENV -x hwf reader preview reader.yaml --input data/particles.parquet --events 2 --json
henv -n YOUR_ENV -x hwf recipe run recipe.yaml --input data/particles.parquet --output results --json
henv -n YOUR_ENV -x hwf recipe export recipe.yaml --input data/particles.parquet --output standalone --json

The last command reads the starter project's sample file. See working-in-a-project.md for what the starter files mean and examples/readers for each format. For choosing event boundaries, collection paths, units and labels in an unfamiliar file, see FILE_FORMAT_README.md. See analysis.md for recipe operations, histogram products, and standalone execution; the Lund and dilepton examples are complete workflows.

Build an offline report from completed results, or inspect them remotely in a terminal:

henv -n YOUR_ENV -x hwf report results --output results.html --json
henv -n YOUR_ENV -x hwf tui results
henv -n YOUR_ENV -x hwf web recipe.yaml --port 8765

The report is one HTML file with embedded data and scripts; it works from file:// without a server or network connection. The web editor listens on localhost and validates edits through the same service as the CLI.

Agents can use the same operations through line-delimited JSON:

printf '%s\n' '{"id":1,"method":"inspect_input","params":{"input":"data/particles.parquet"}}' \
  | henv -n YOUR_ENV -x hwf agent serve
henv -n YOUR_ENV -x hwf reader scaffold my_reader --output src/my_reader

See agent-workflow.md for the typed method contract and the recommended inspect → draft → validate → preview → run → export flow.

Recipes may declare a visible Python preprocessing module. It receives the ordered input paths and a Parquet output path, and its source and dependencies are bundled by standalone export. See processing.md.

For an LLM-assisted jet-observable workflow and a complete angularities example, see HOW-TO-EXAMPLE-WORKFLOW.md.

To compare two completed results at matched quantiles of jet pT (Brewer, Milhano and Thaler's procedure for Pb-Pb versus pp), use hwf quantile match; see quantile-matching.md and the quantile example.

hwf schema validate accepts reader-draft, reader, or recipe; failed validation exits nonzero and reports stable diagnostic codes and YAML paths. Paths passed to the CLI are resolved from your current directory; use absolute paths when invoking it from elsewhere. A missing file reports FILE_NOT_FOUND. An omitted momentum-field unit resolves to GeV/c and appears in assumed_units in JSON output. Declare a different source unit explicitly when needed. Schema files are available under schemas/ and ship inside the wheel.

The package requires NumPy, PyArrow, JSON Schema and PyYAML. Pure histogramming does not import hepyy, FastJet, PYTHIA, HepMC, uproot, h5py or a web server. Optional extras in pyproject.toml reserve these dependency boundaries. For all milestone 2 readers, install .[root,hdf5,hepmc] in the analysis environment. See architecture.md and provenance.md.

Metadata

Release files for hepyy-workflows 0.1.3

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

Source distribution (sdist)

Source distribution for hepyy-workflows 0.1.3
File Size Uploaded Provenance Actions
hepyy_workflows-0.1.3.tar.gz 77.5 kB With provenance Details for hepyy_workflows-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hepyy-workflows 0.1.3
File Interpreter ABI Platform Actions
hepyy_workflows-0.1.3-py3-none-any.whl Python 3 none any Details for hepyy_workflows-0.1.3-py3-none-any.whl

Total release size: 151.3 kB

Release files / hepyy_workflows-0.1.3.tar.gz

Download URL hepyy_workflows-0.1.3.tar.gz
Size 77.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4ad1972cb5d65531e842c212619a5161b95db74ed2ece46e5ddc9135a0fc96f2
BLAKE2b-256 checksum
How to use checksums
1a5262b71b6a031646bde0a247b6bd8df1206815f474f1d40ca64462402e5615
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 Sep 27, 2026.

Transparency log

Release files / hepyy_workflows-0.1.3-py3-none-any.whl

Download URL hepyy_workflows-0.1.3-py3-none-any.whl
Size 73.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74ac27b01fa6f4878ce3da9c40f12cf27e257ebc7fc42d6aa6a4feff311a1835
BLAKE2b-256 checksum
How to use checksums
198b81f79bf3bd525821253962133d45d2d957414334643a52c2f6a5357f5ebd
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 Sep 27, 2026.

Transparency log

Security for hepyy-workflows 0.1.3

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hepyy_workflows-0.1.3.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 Sep 27, 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