ExposoGraph.config

Runtime configuration helpers for deployment mode selection.

class ExposoGraph.config.AppMode(value)[source]
STATELESS = 'stateless'
LOCAL = 'local'
class ExposoGraph.config.GraphMode(value)[source]
EXPLORATORY = 'exploratory'
STRICT = 'strict'
class ExposoGraph.config.GraphVisibility(value)[source]
ALL = 'all'
VALIDATED_ONLY = 'validated_only'
EXPLORATORY_ONLY = 'exploratory_only'
ExposoGraph.config.normalize_app_mode(value)[source]

Normalize environment/config values into a supported app mode.

Parameters:

value (str | None)

Return type:

AppMode

ExposoGraph.config.normalize_graph_mode(value)[source]

Normalize graph-validation mode values.

Parameters:

value (str | None)

Return type:

GraphMode

ExposoGraph.config.normalize_graph_visibility(value)[source]

Normalize graph-view visibility mode values.

Parameters:

value (str | None)

Return type:

GraphVisibility

ExposoGraph.config.get_app_mode(env=None)[source]

Resolve the current app mode from the environment.

Parameters:

env (Mapping[str, str] | None)

Return type:

AppMode

ExposoGraph.config.persistence_enabled(mode)[source]

Whether server-side persistence features are allowed.

Parameters:

mode (AppMode | str)

Return type:

bool