morpheus.utils.env_config_value.EnvConfigValue#

class EnvConfigValue(value=None, use_env=True)[source]#

Bases: ABC

A 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_KEY and _ENV_KEY_OVERRIDE can be set to enable environment-loading functionality. Convienience properties are available to check from where the value was loaded.

Attributes:
source
use_env
value