SealSkin

AppSettings

Settings parsed from environment variables with fallback to defaults.

Each entry of SETTING_DEFINITIONS becomes an attribute of the instance (for example settings.api_port).

Functions

constructor__init__() -> None

Populate attributes from the environment.

Returns

None
func_process_and_set_attributes() -> None

Parse every definition and set it as an attribute.

Returns

None
funcapply_overrides(values) -> None

Lay the cluster's written settings over the environment's.

Only the settings in CLUSTER_SETTINGS are taken, each coerced to its declared type; one the cluster no longer sets goes back to what the environment or the default gave it.

paramvaluesdict[str, Any]

The content of cluster/settings.yml.

Returns

None

On this page