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.11+ 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.

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.

Release files for hepyy-workflows 0.1.1

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.1
File Size Uploaded
hepyy_workflows-0.1.1.tar.gz 66.3 kB Details

Built distribution (wheel)

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

Total release size: 130.4 kB

Release files / hepyy_workflows-0.1.1.tar.gz

Download URL hepyy_workflows-0.1.1.tar.gz
Size 66.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a798e876a97ee35a0f2074c4d4467ea382fe642f591cd5b83425f6df343e2387
BLAKE2b-256 checksum
How to use checksums
1cb7b0a8522b23963746b637b1fe296b8cca6eab1651a5940ab2215aeb52bfda
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 24, 2026.

Transparency log

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

Download URL hepyy_workflows-0.1.1-py3-none-any.whl
Size 64.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d3f48622cb9275d6499a087dbab4433f0adc940fa76717e8a115cbf308bb69d
BLAKE2b-256 checksum
How to use checksums
0420c42e7e089d17da228046929c4d82ea9aff607eb572e205dc9b494bc929d7
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 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.2

2 release files

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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