Skip to content

Light weight feature flag system in python, for python.

License

Notifications You must be signed in to change notification settings

GreNait/fastfeatureflag

Repository files navigation

Static Badge Static Badge PyPI - Python Version GitHub last commit (branch) PyPI - Downloads

PyPI version pylint_badge unittest_badge mypy PyPI - License

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(s)
  • 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
  • define a shadow method which should be executed instead of your deactivated feature

🛠 Installation

pip install fastfeatureflag
poetry add fastfeatureflag

🏳 flag away ...

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

from fastfeatureflag.feature_flag import feature_flag

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

broken_feature()
NotImplementedError: Feature not implemented

About

Light weight feature flag system in python, for python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published