valohai-yaml
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
Release files for valohai-yaml 0.60.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| valohai_yaml-0.60.0.tar.gz | 78.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| valohai_yaml-0.60.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 140.3 kB
Release files / valohai_yaml-0.60.0.tar.gz
| Download URL | valohai_yaml-0.60.0.tar.gz |
|---|---|
| Size | 78.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b16ba79ab952ccd314c921667265130f547702745c0df0582142e153472b0937
|
|
BLAKE2b-256 checksum How to use checksums |
f08e69e16eaa840be4b47bb65da52d98f9c84038d92dc1a058b20b3445d11159
|
| 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 31, 2026.
Transparency logRelease files / valohai_yaml-0.60.0-py3-none-any.whl
| Download URL | valohai_yaml-0.60.0-py3-none-any.whl |
|---|---|
| Size | 61.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d87fc91be94bb5a5608b0501286671e6c51ba63b1593f1ff62ef203c82c57ee9
|
|
BLAKE2b-256 checksum How to use checksums |
1ee9d38841932f0447a3ebe8877d868b8b85159922769db95f39f0cb6476a152
|
| 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 31, 2026.
Transparency log