load_yaml
-
Description: Reads a YAML file.
-
Parameters:
- path (
Union[Path, str]): The path to the YAML file.
- path (
-
Return Value:
- dict: The content of the YAML file.
-
Example:
from capybara.utils.files_utils import load_yaml
path = '/path/to/your/yaml'
data = load_yaml(path)
print(data)
# >>> {'key': 'value'}