pytuflow.ArrConfig.from_dict

pytuflow.ArrConfig.from_dict#

classmethod ArrConfig.from_dict(data, source_path=None)#

Builds and validates a config from a dictionary (the parsed contents of a JSON config file).

Parameters:
  • data (dict) – The config settings, keyed by top-level section name.

  • source_path (Path, optional) – The path the config was loaded from, used in error messages.

Returns:

The validated config.

Return type:

ArrConfig

Raises:

ArrConfigError – If data contains unknown top-level keys or fails validation.