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.58.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.58.0.tar.gz | 76.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| valohai_yaml-0.58.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 136.8 kB
Release files / valohai_yaml-0.58.0.tar.gz
| Download URL | valohai_yaml-0.58.0.tar.gz |
|---|---|
| Size | 76.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1def430d44b320a39c64f5d7fe0d13c59bd75e59361a28a829e554e732520578
|
|
BLAKE2b-256 checksum How to use checksums |
9f303ec978df52b7ffcdccb593477f8d6004a3d20b81b174d90d096fc5cecbc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / valohai_yaml-0.58.0-py3-none-any.whl
| Download URL | valohai_yaml-0.58.0-py3-none-any.whl |
|---|---|
| Size | 60.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b177d46b038cac770571e9554121309be7bd17766739a5f42dd72fd57ae6519
|
|
BLAKE2b-256 checksum How to use checksums |
53f1b6331f2b64be70708340ccc8f66bec5368378a182a47a6568561acb963c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|