Skip to main content

load_yaml

load_yaml(path: Union[Path, str]) -> dict

  • Description: Reads a YAML file.

  • Parameters:

    • path (Union[Path, str]): The path to the YAML file.
  • 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'}