maci.yamlload
loads yaml data from a file
Last updated
loads yaml data from a file
Last updated
Loads yaml file data, and returns the corresponding python data type.
Basic Example of loading a yaml file using default positional parameter
In this example, we simply load yaml data from a file using the yamlload 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. Note: This function loads a single yaml document in the file. If looking to load multiple yaml documents from a file, use the function.
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" method to protect from untrusted input. For more information on PyYAML, visit: