Skip to content

PyPI version pylint_badge unittest_badge mypy

FastFeatureFlag is a lightweight tool to generate and use feature flags. Build in python for python. The key components are:

  • easy to add feature flag
  • easily activate/deactivate features
  • naming/grouping flags
  • define custom response for flagged features
  • use environment variables as your on/off switch
  • manage feature flags with a simple toml file

🛠 Installation


pip install fastfeatureflag
poetry add fastfeatureflag

🏳 flag away ...


take a look at the decorator feature_flag() - that is all you need.

fast feature flags
from fastfeatureflag.feature_flag import feature_flag

@feature_flag("off")
def broken_feature():
    return "I am broken"

broken_feature()
NotImplementedError: Feature not implemented

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