This library takes the contents of an OpenSAFELY pipeline configuration file (project.yaml
or pipeline.yaml
), validates it, and parses it into a typed structure.
For example:
with open("/path/to/project.yaml") as f:
data = load_pipeline(f.read())
The returned object is an instance of pipeline.models.Pipeline
.
Please see the additional information.