Ask a question to get started
Enter to send•Shift+Enter new line
Get a value from a dictionary or an environment variable.
get_from_env( key: str, env_key: str, default: str | None = None ) -> str
key
str
The key to look up in the dictionary.
env_key
The environment variable to look up if the key is not in the dictionary.
default
str | None
None
The default value to return if the key is not in the dictionary or the environment.