flowbber.config
¶Module implementating the Configurator class.
Configurator
:
A Component configuration options manager.flowbber.config.
Configurator
¶A Component configuration options manager.
Inheritance
add_option
(key, default=None, optional=False, schema=None, secret=False)¶Declare an option.
add_validator
(validator)¶Add a custom validation function.
validate
(userconf)¶Validate the given user configuration dictionary with the declared config handled by this configurator.
userconf (dict) – The user configuration.
A custom named tuple that maps the config keys with another named tuple that holds the name of the key, the value and the flag marking it as secret or not.
namedtuple