granular_configuration_language .yaml.file_ops.yaml

granular_configuration_language.yaml.file_ops.yaml.load_from_file(
file: EagerIOTextFile | Path,
/,
options: LoadOptions,
root: Root,
) Any[source]

Added in version 2.3.0.

Load file from a Tag, using this library’s loader (i.e. supports Tags).

Parameters:
  • file (EagerIOTextFile | Path) – File path.

  • options (LoadOptions) – Options from the parent used to load the child.

  • root (Root) – Root from the parent used to be the root of the child.

Returns:

Parsed result

Return type:

Any

granular_configuration_language.yaml.file_ops.yaml.safe_load_from_file(
file: EagerIOTextFile | Path,
/,
) Any[source]

Added in version 2.3.0.

Load file from a Tag, using a safe YAML loader (i.e. supports does not Tags).

Parameters:

file (EagerIOTextFile | Path) – File path.

Returns:

Parsed result

Return type:

Any