morpheus.utils.env_config_value.EnvConfigValue#
- class EnvConfigValue(value=None, use_env=True)[source]#
Bases:
ABCA wrapper for a string used as a configuration value which can be loaded from the system environment or injected via the constructor. This class should be subclassed and the class fields
_ENV_KEYand_ENV_KEY_OVERRIDEcan be set to enable environment-loading functionality. Convienience properties are available to check from where the value was loaded.- Attributes:
- source
- use_env
- value