Skip to content

aea.helpers.env_vars

Implementation of the environment variables support.

is_env_variable

is_env_variable(value: Any) -> bool

Check is variable string with env variable pattern.

replace_with_env_var

replace_with_env_var(value: str, env_variables: dict, default_value=NotSet) -> JSON_TYPES

Replace env var with value.

apply_env_variables

apply_env_variables(data: Union[Dict, List[Dict]], env_variables: Mapping[str, Any], default_value=NotSet) -> JSON_TYPES

Create new resulting dict with env variables applied.

convert_value_str_to_type

convert_value_str_to_type(value: str, type_str: str) -> JSON_TYPES

Convert value by type name to native python type.