load_yaml
-
Description
Read a YAML file.
-
Parameters:
- path (
Union[Path, str]
): The path to the YAML file.
- path (
-
Returns:
- dict: The content of the YAML file.
-
Example:
import docsaidkit as D
path = '/path/to/your/yaml'
data = D.load_yaml(path)
print(data)
# >>> {'key': 'value'}