yaml_helper module
- yaml_helper.construct_numeral(loader, node, type_constructor: ~typing.Callable = <class 'int'>)[source]
Construct a numeral scalar and cast to the desired type
- yaml_helper.load_yaml_from_file(file_name: str)[source]
Read and evaluate the YAML contained in the file with the given name, construct the corresponding python object and return it.
- Parameters:
- file_name: str
The path to the file to load.
- Returns:
- Any:
The object parsed from the YAML definitions in the given file.