gordias.metadata.load_configuration_metadata#

gordias.metadata.load_configuration_metadata(metadata_files: str | list[str] | None = None) dict[str, dict[str, str]] | None#

Load the configuration metadata from yml files.

Loads the default configuration from the default directory etc. An external configuration file can be loaded trough the input parameter metadata_files. If multiple configurations are loaded, the last loaded configuration will supersede the other configurations including the default configuration.

Parameters:

metadata_files (string or list[str], optional) – A path or a list of paths to external configuration files.

Returns:

A dictionary containing the configuration metadata. None if no configuration was found.

Return type:

dict[str, dict[str, str]] or None