Skip to content

environ

Utils to read environment variables

Functions:

  • get_env_var

    Function to read and return a single environment variable

  • get_env_vars

    Function to read and returned environment variables

get_env_var

get_env_var(var: str | None = None, default: str = '') -> str

Function to read and return a single environment variable

Parameters:

  • var

    (str | None, default: None ) –

    Environment variable to read

  • default

    (str, default: '' ) –

    Default value to return if no environment variable exists

Returns:

  • str

    Environment variable (string)

get_env_vars

get_env_vars() -> Dict[str, str]

Function to read and returned environment variables

Returns:

  • Dict[str, str]

    Dictionary of environment variables