settings¶
Functions
|
|
|
Check if a path is available in your environment. |
Classes
|
Encapsulate the logic for finding and reading config files. |
|
Encapsulate merging different types of configuration files. |
|
etna settings. |
- class ConfigFileFinder(program_name: str)[source]¶
Encapsulate the logic for finding and reading config files.
Adapted from:
https://github.com/catalyst-team/catalyst (Apache-2.0 License)
Initialize object to find config files.
- Parameters
program_name (str) – Name of the current program (e.g., catalyst).
- Return type
None
- generate_possible_local_files()[source]¶
Find and generate all local config files.
- Yields
str – Path to config file.
- class MergedConfigParser(config_finder: etna.settings.ConfigFileFinder)[source]¶
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.
- 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.
- class Settings(torch_required: Optional[bool] = None, prophet_required: Optional[bool] = None, wandb_required: Optional[bool] = None, classification_required: Optional[bool] = None, auto_required: Optional[bool] = None, statsforecast_required: Optional[bool] = None)[source]¶
etna settings.
- Parameters
torch_required (Optional[bool]) –
prophet_required (Optional[bool]) –
wandb_required (Optional[bool]) –
classification_required (Optional[bool]) –
auto_required (Optional[bool]) –
statsforecast_required (Optional[bool]) –
- static parse() etna.settings.Settings [source]¶
Parse and return the settings.
- Returns
Dictionary of the parsed and merged Settings.
- Return type