b3j0f.conf.configurable.decorator module

b3j0f.conf.configurable.decorator.conf_paths(*conf_paths)[source]

Configurable decorator which adds conf_path paths to a Configurable.

Parameters:paths (list of str) – conf resource pathes to add to a Configurable.

Example: >>> conf_paths(‘test0’, ‘test1’)(Configurable)().conf_paths[:-2] [‘test0’, ‘test1’]

b3j0f.conf.configurable.decorator.add_category(name, unified=True, content=None)[source]

Add a category to a configurable configuration.

Parameters:
  • name (str) – category name.
  • unified (bool) – if True (by default), the new category is unified from previous conf.
  • content (Category or list(Parameter)) – category or list of parameters to add to the new category.