bayesline.api.FeatureStatus#

class bayesline.api.FeatureStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)#

Represents what features a user has access to. Either ENABLED or the denial reason.

__init__(*args, **kwds)#

Methods

is_enabled()

Return True if this status represents an accessible feature.

Attributes

ENABLED = 'enabled'#
DISABLED = 'disabled'#
MISSING_FEATURE_ENTITLEMENT = 'missing_feature_entitlement'#
is_enabled() bool#

Return True if this status represents an accessible feature.

Returns#

bool

True if the feature is accessible, False otherwise.