A python module for env variable and config file management.
Project description
config-store
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.
Installation
pip install configstore
Usage
import configstore
configstore.connect($CONFIG_FOLDER)
print(configstore.get("foo", default_value="not found QQ"))
# >>> 'bar'
Config Setting
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
config-store-0.0.4.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for config_store-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d94025311c502162e4263a81f0c09e77f3b3b2ba45a46bf6a45d390252953717 |
|
MD5 | ae1368fcbfe15f6de13e89b7eacbacc4 |
|
BLAKE2b-256 | 78f1d17d1b4faa0fb33cd386441bfa331f13decf5e83a3882e38737b70dd98e4 |