maci.yamlloadall
loads multiple yaml docs from a file
Last updated
loads multiple yaml docs from a file
Last updated
Loads multiple yaml documents from a file, and returns the corresponding python data types.
Basic Example of loading a yaml file with multiple docs using default positional parameter
In this example, we simply load a file that contains multiple yaml documents using the yamlloadall function and pass a string of the filepath to the file as an argument to the function to load the yaml data, and assign the returned data to a variable.
The returned data will be an iterator with each item containing the individual yaml document data. Information on writing multiple YAML docs in a file:
Describes all parameter functionality and accepted data types
This function uses the PyYAML framework installed as a dependency from pypi for its underlying functionality. It is only using the "safe_load_all" method to protect from untrusted input. For more information on PyYAML, visit: