MergedConfigParser¶
- class MergedConfigParser(config_finder: etna.settings.ConfigFileFinder)[source]¶
Bases:
object
Encapsulate merging different types of configuration files.
This parses out the options registered that were specified in the configuration files, handles extra configuration files, and returns dictionaries with the parsed values.
Adapted from:
https://github.com/catalyst-team/catalyst (Apache-2.0 License)
Initialize the MergedConfigParser instance.
- Parameters
config_finder (etna.settings.ConfigFileFinder) – Initialized ConfigFileFinder.
- Inherited-members
Methods
parse
()Parse and return the local and user config files.
Attributes
Set of actions that should use the
getbool()
method.- parse() dict [source]¶
Parse and return the local and user config files.
First this copies over the parsed local configuration and then iterates over the options in the user configuration and sets them if they were not set by the local configuration file.
- Returns
Dictionary of the parsed and merged configuration options.
- Return type
dict
- GETBOOL_ACTIONS = {'store_false', 'store_true'}¶
Set of actions that should use the
getbool()
method.