utils.get_credentials_from_env()

Retrieve username and password credentials from environment variables.

Usage

Source

utils.get_credentials_from_env(
    username_key,
    password_key,
)

Parameters

username_key: str

The environment variable name for the username

password_key: str
The environment variable name for the password

Returns

tuple[str, str]
A tuple of (username, password)

Raises

KeyError
If either credential is missing or empty.