A package to share config accross modules
Project description
Introduction
config_bat is a package helps developers easily config the app using config.json file
Getting Started
TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:
-
Installation process pip install config_bat
-
API references Environment variables: CONFIG_PATH: the path to config file. Default: "/config/config.json" APP_STAGE: define in config.json
config.json file: The first level key is the stage of the app. You can define the config nested in those keys The "common" key is readed by default. If the config apears both in "common" and other stages, the stage config will be used If you want to use environmen variables, place a "$" character before you variable name.
Example of config.json:
{ "common": { // Environmental variables "JWT_SECRET": "$SEC_KEY", "port": 8080 }, "development": { // Nested config "mongodb": { "host": "localhost", "user": "dev_user", "pass": "dev_pass" } }, "production": { "mongodb": { "host": "your.domain", "user": "prod_user", "pass": "prod_pass" } } }
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
Built Distribution
Hashes for config_bat-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdfc41a78e36cc4b5f16d1ba1dda7f5ff300ec087588dc16751d13d75dc0ac20 |
|
MD5 | 951a62550c42808ac1832e57ac834f85 |
|
BLAKE2b-256 | 01fe8b63b07a8b84c3056e0f5dd14b8bc02af7a5dfbf91175f00453cc2fba95d |