Skip to main content

HyFI: Hydra Fast Interface

pypi-image license-image DOI

HyFI composes Hydra configs, validates them with Pydantic, and runs reproducible workflows. Every run writes a manifest with the resolved config, the code version, and per-step results, so the same run can be repeated later, by a person or by a coding agent.

HyFI 2.0 is a rewrite. The 1.x line stays on the v1 branch; pin hyfi<2 to keep it.

Install

uv add hyfi          # or: pip install hyfi
uvx hyfi --version   # run without installing

Python 3.11 or newer. Core dependencies: hydra-core, omegaconf, pydantic, python-dotenv.

Quick start

Put configs in ./conf:

# conf/workflow/charcount.yaml
name: charcount
steps:
  - run: pathlib.Path
    with: {_args_: [README.md]}
  - run: pathlib.Path.read_text   # receives the previous result as its first argument
  - run: builtins.len
hyfi run workflow=charcount --dry-run   # resolve every step without running it
hyfi run workflow=charcount             # run it and write .hyfi/runs/<run_id>/manifest.json
hyfi rerun <run_id>                     # run the recorded config again

From Python or a notebook:

import hyfi

cfg = hyfi.compose(["workflow=charcount"])
manifest = hyfi.run_workflow(cfg)
print(manifest.status, [s.status for s in manifest.steps])

What is in the box

  • compose() / instantiate() / BaseConfig: Hydra composition with Pydantic validation, from the CLI, code, or notebooks. Nothing happens at import time.
  • Plugins: any package can ship config groups through the hyfi.plugins entry point.
  • Workflows: ordered steps, each a Python callable built with Hydra instantiate; results pipe into the next step.
  • Run manifests: resolved config, git SHA, uv.lock hash, Python and platform, timings, errors.
  • Execution allowlist: --allow 'mypkg.*' limits which callables a config may run (forwarded to Hydra 1.4's execution whitelist).
  • Agent-friendly CLI: --json on every command, hyfi config schema for JSON Schema, non-zero exit codes on failure.

Citation

@software{lee_2023_8247719,
  author       = {Young Joon Lee},
  title        = {HyFI: Hydra Fast Interface},
  year         = 2023,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.8247719},
  url          = {https://doi.org/10.5281/zenodo.8247719}
}

License

MIT

Metadata

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

Built distribution (wheel)

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

Total release size: 192.6 kB

Release files / hyfi-2.0.0.tar.gz

Download URL hyfi-2.0.0.tar.gz
Size 173.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d70dc7c85188eca09cdeee05b2ccd3c25b902eaabba973d0738a528913f47ec5
BLAKE2b-256 checksum
How to use checksums
032d49a81b3b63ba2b3ad2911e430c9131557210e260710eb31645a568dd37b7
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 Oct 18, 2026.

Transparency log

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

Download URL hyfi-2.0.0-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82ca9a77926db8f063090bdee8f75f077530c4bfc78e52ceb479240543dbb003
BLAKE2b-256 checksum
How to use checksums
5f48e09f506b7ad2a9ffd08300997547c8d4510096ac187a8c56ac03dcf5a73c
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 Oct 18, 2026.

Transparency log

Security for hyfi 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

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

Select from 2 files

Attestation for hyfi-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 Oct 18, 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.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files Full 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