yaml_load#
- tollan.utils.yaml.yaml_load(source: str | os.PathLike | TextIOBase) object[source]#
Load YAML data from a file, stream, or string.
- Parameters:
source (str or os.PathLike or TextIOBase) – The YAML source. Can be: - File path: read from file - File object: read from stream - String: parse as YAML
- Returns:
Parsed YAML data.
- Return type:
- Raises:
TypeError – If source is not a valid type.