Project description
The problem?
Most applications use constants. Many constants take different values based on the environment the application is executed in.
Think database credentials over development, testing, staging, production or stock market execution over development, testing, paper, production …
A solution
Shamelessly inspired by the app_constants gem, constants aims to solve that problem (and that problem only).
.ini file
constants uses the .ini file format to specify the application constants values in each environment. DEFAULT values are available in every environment unless specifically overridden in a section.
[DEFAULT] something = a_default_value all = 1 a_string = 0350 [a_section] something = a_section_value just_for_me = 5.0 flag = False minutes = 365 * 24 * 60
To find out more about ini fil