A python module for env variable and config file management. Inspired from webpack configuration management, config-store support multi-stage configs merger. For information security, separation of sensitive settings are also provided.
pip install configstore
import configstore
configstore.connect($CONFIG_FOLDER)
print(configstore.get("foo", default_value="not found QQ"))
# >>> 'bar'
CONFIG_FOLDER
- secret
- secret.default.json
- secret.dev.json
- secret.pd.json
- config.default.json [requried]
- config.dev.json
- config.pd.json
Config Read Order
- ENV variable
- stage config
- default config
- default value