uwtools.api.rocoto
- uwtools.api.rocoto.realize(config: Optional[Union[YAMLConfig, Path, str]], output_file: Optional[Union[Path, str]] = None) bool
Realize the Rocoto workflow defined in the given YAML as XML.
If no input file is specified,
stdinis read. AYAMLConfigobject may also be provided as input. If no output file is specified,stdoutis written to. Both the input config and output Rocoto XML will be validated against appropriate schcemas.- Parameters
config – Path to YAML input file (
Noneor unspecified => readstdin), orYAMLConfigobjectoutput_file – Path to write rendered XML file (
Noneor unspecified => write tostdout)
- Returns
True