nip.utils.env

nip.utils.env#

Utilities for working with environment variables.

Functions

env_var_default_factory(var_name[, default])

Create a factory function for getting an environment variable with a default.

get_env_var(var_name[, default])

Get the value of an environment variable, raising an error if not set.

load_env_once()

Load the environment variables once.

reload_env()

Reload the environment variables.

Exceptions

EnvironmentVariableDoesNotExistError(var_name)

An exception raised when an environment variable is not set.