Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.13 KB

env_vars.md

File metadata and controls

50 lines (31 loc) · 1.13 KB

aea.helpers.env_vars

Implementation of the environment variables support.

is_env_variable

def is_env_variable(value: Any) -> bool

Check is variable string with env variable pattern.

replace_with_env_var

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

Replace env var with value.

apply_env_variables

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

Create new resulting dict with env variables applied.

convert_value_str_to_type

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

Convert value by type name to native python type.