smart-config 0.4.0-pre.3

Schema-driven layered configuration system with support of multiple configuration formats
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
APP_APP_NAME=stage
APP_PORT=8080
APP_SCALING_FACTOR=3.0
APP_TEMP_DIR=/var/app-stage
# Note the use of ':' delimiter
APP_DIR_PATHS="/usr/bin:/usr/local/bin:/bin"
APP_TIMEOUT_SEC=2

# Unit deserializer is smart enough to parse unit suffixes
# ('_MB' in this case). Note that we still use a deprecated path alias
# for the param.
APP_EXPERIMENTAL_CACHE_SIZE_MB=128
APP_EXPERIMENTAL_API_KEY=SUPER_SECRET_DONUT_STEEL
# Here, we use JSON coercion because the deserializer doesn't support any plain values
APP_EXPERIMENTAL_METHOD_LIMITS__JSON='{ "eth_call": 200, "eth_blockNumber": 1000 }'
# Note the natural spacing around ',' and '=' enabled by the use of regexes
APP_EXPERIMENTAL_BALANCES="1234 = 0.01 ether, 4321 = 600000 gwei"