Developer Interface¶
Configuration¶
-
class
candis.
Config
(schema=None)¶ An n-ary tree-like configuration object. Each leaf node of the tree holds a configuration value. A leaf node is denoted by an uppercase attribute whereas each internal node is denoted by a capitalized attribute.
Parameters: schema ( dict
(default -{ }
)) – a dict-like object for configuration data.Example: >>> import candis >>> config = candis.Config({ 'name': 'candis', 'version': '0.1.0' }) >>> config.NAME 'candis'