load_yaml

load_yaml(key: str, *subkeys: str, name: str, yaml_load_kwargs: Mapping[str, Any] | None = None) Any[source]

Open a JSON file json.

Parameters:
  • key – The module name

  • subkeys – A sequence of additional strings to join. If none are given, returns the directory for this module.

  • name – The name of the file to open

  • yaml_load_kwargs – Keyword arguments to pass through to yaml.safe_load().

Returns:

A JSON object (list, dict, etc.)