pip_services3_components.config.FileConfigReader module

pip_services3_components.config.FileConfigReader

File config reader implementation

copyright

Conceptual Vision Consulting LLC 2018-2019, see AUTHORS for more details.

license

MIT, see LICENSE for more details.

class pip_services3_components.config.FileConfigReader.FileConfigReader(path: str = None)

Bases: pip_services3_components.config.ConfigReader.ConfigReader

Abstract config reader that reads configuration from a file. Child classes add support for config files in their specific format like JSON, YAML or property files.

### Configuration parameters ###
  • path: path to configuration file

  • parameters: this entire section is used as template parameters

configure(config: pip_services3_commons.config.ConfigParams.ConfigParams)

Configures component by passing configuration parameters.

Parameters

config – configuration parameters to be set.

get_path()str

Get the path to configuration file.

Returns

the path to configuration file.

set_path(path: str)

Set the path to configuration file.

Parameters

path – a new path to configuration file.