Skip to content

Service Configuration

You can define your package’s default configuration in my-package/__init__.py:

def default_config():
    """
    Returns the default configuration values for this package.

    These defaults will be available under:
    `lime_config.config['plugins']['{{ cookiecutter.lib_name }}']`

    Values defined here can be overridden in the service's `config.yml`.
    """
    return {}

This default configuration is used when no corresponding entry exists in the service’s config.yml, and it also serves as inline documentation for your package's configurable parameters.

Usage example:

import lime_config

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