Environment Configuration

You can set your package's default enviromental config in my-package/__init__.py.

def default_config():
    """Returns the default values for configuration parameters for this package
    The resulting configuration will be available under
    `lime_config.config['plugins']['{{ cookiecutter.lib_name }}']`
    The values here can be overridden in the service's config file.
    """

    return {}

The default config will be loaded in case there is no configuration entry in the config.yml, and will also serve as "documentation" for your package's configuration requirements.

Code example:

import lime_config

my_config = lime_config.config['packages']['my-package']
Back to top