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:
import capybara as cb
path = '/path/to/your/yaml'
data = cb.load_yaml(path)
print(data)
# >>> {'key': 'value'}