from_file#

static Configuration.from_file(config_path: str) Configuration#

Initialize the PyPIM configuration based on the configuration file.

Parameters:
config_pathstr

Path of the configuration file.

Returns:
Configuration

PyPIM configuration.

Raises:
InvalidConfigurationError

The configuration is not valid.