Parses and validates valohai.yaml
files.
pip install valohai-yaml
Programmatic usage:
from valohai_yaml import validate, ValidationErrors
try:
validate(open('my_yaml.yaml'))
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
from valohai_yaml import parse
config = parse(open('my_yaml.yaml'))
print(config.steps['cool step'].command)