Skip to main content

valohai-yaml

Build Status Codecov License: MIT

Parses and validates valohai.yaml files.

Valohai YAML files are used to define how your machine learning project workloads and pipelines are ran on the Valohai ecosystem. Refer to Valohai Documentation to learn how to write the actual YAML files and for more in-depth usage examples.

Installation

pip install valohai-yaml

Usage

Validation

Programmatic usage:

from valohai_yaml import validate, ValidationErrors

try:
    with open("path/to/valohai.yaml") as f:
        validate(f)
except ValidationErrors as errors:
    print("oh no!")
    for err in errors:
        print(err)

Command-line usage:

valohai-yaml my_yaml.yaml
echo $?  # 1 if errors, 0 if ok

Parsing

from valohai_yaml import parse

with open("path/to/valohai.yaml") as f:
    config = parse(f)

print(config.steps["cool step"].command)

Development

# setup development dependencies
make dev

# run linting and type checks
make lint

# run tests
make test

Snapshots

Update syrupy snapshots after making changes to the examples.

pytest --snapshot-update

Metadata

Release files for valohai-yaml 0.62.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 valohai-yaml 0.62.0
File Size Uploaded Provenance Actions
valohai_yaml-0.62.0.tar.gz 85.5 kB With provenance Details for valohai_yaml-0.62.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for valohai-yaml 0.62.0
File Interpreter ABI Platform Actions
valohai_yaml-0.62.0-py3-none-any.whl Python 3 none any Details for valohai_yaml-0.62.0-py3-none-any.whl

Total release size: 148.7 kB

Release files / valohai_yaml-0.62.0.tar.gz

Download URL valohai_yaml-0.62.0.tar.gz
Size 85.5 kB
Tags Source
SHA-256 checksum
How to use checksums
16352bd1b796b3b0e1ff80b8bd537018eefc8022f8b7dbe6507272bac0870fb3
BLAKE2b-256 checksum
How to use checksums
40e4ec00eafd181c00974af115b8414c06c3065df838754a5e3590d1548f1aa4
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 Nov 27, 2026.

Transparency log

Release files / valohai_yaml-0.62.0-py3-none-any.whl

Download URL valohai_yaml-0.62.0-py3-none-any.whl
Size 63.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fe1abcd0ab3aee4e6726283fdcc641822ecaee93127057086ac425758764763
BLAKE2b-256 checksum
How to use checksums
037d2e409a652b2f5b8fb55b81566044179de01cf39a2e5069c1912b5a84e8cb
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 Nov 27, 2026.

Transparency log

Security for valohai-yaml 0.62.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 valohai_yaml-0.62.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 Nov 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.

Release history Release notifications | RSS feed

This release

0.62.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