Skip to content

🏳 feature_flag reference

Feature flag

Feature flag containing the flag and the shadow mode.

__init__(activation='off', response=None, name=None, configuration=None, configuration_path=None, **kwargs)

Initialize feature

Initialize feature and if not registered, start the register process.

Parameters:

Name Type Description Default
activation str

The activation of the feature on|off. Defaults to "off".

'off'
response Any | None

What should an deactivated feature return. Defaults to None.

None
name str | None

Name of the feature. Used for grouping features together. Defaults to None.

None
configuration dict | None

Use a dict for configuring features. Defaults to None.

None
configuration_path Path | None

A path to a configuration toml. Defaults to None.

None

Last update: October 28, 2023
Created: October 28, 2023