EnvSource
¶
A ConfigSource that loads values from environment variables.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
prefix |
str |
a prefix for all environment variables that should be loaded (e.g. "APP_"). Only vars which begin with the prefix will be loaded. |
required |
separator |
str |
a string that will separate nested values. Defaults to |
required |
Note
All keys will be converted to lower case with the prefix stripped.
items(self)
¶
Returns a generator for getting all key, value pairs
Source code in flex_config\env_source.py
52 53 54 |
|
to_dict(self)
¶
Returns a generator for getting all key, value pairs
Source code in flex_config\env_source.py
40 41 42 43 44 45 46 47 48 49 50 |
|