ConfigurationΒΆ

Using the configuration module the chassis can be configured, but it can also be used for application-specific configuration.

When you make a new instance of the ConfigParser it will contain a property config that contains all the configuration.

The dictionary is filled based on following priority:

  1. command line arguments (not implemented)
  2. environment variables (not implemented)
  3. config.yml file in the project root folder
  4. default values
from viaa.configuration import ConfigParser

config = ConfigParser()

Example of a config.yml file.

viaa:
  logging:
    level: 40
application:
  throttle_time: 10