Skip to main content

load_yaml

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

  • Description

    Read a YAML file.

  • Parameters:

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