settings

Access for execution specific environment variables.

Functions

coerce_bool

Coerce environment variable to a boolean.

coerce_optional_int

Coerce environment variable to an optional integer.

coerce_optional_str

Coerce environment variable to an optional string.

get

Get environment variable.

laminar.settings.coerce_bool(prefix: str, attr: str) bool

Coerce environment variable to a boolean.

laminar.settings.coerce_optional_int(prefix: str, attr: str) int | None

Coerce environment variable to an optional integer.

laminar.settings.coerce_optional_str(prefix: str, attr: str) str | None

Coerce environment variable to an optional string.

laminar.settings.get(prefix: str, attr: str) str | None

Get environment variable.

Classes

Current

Get information about the current execution environment.