light-weight feature flags
Project description
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 ...
!!! tip "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"
NotImplementedError: Feature not implemented
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fastfeatureflag-0.2.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for fastfeatureflag-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 132284abc329d7a2e97d3c95c91dbfb68ab95ef0af17ef8723fbc4102ca8988d |
|
MD5 | e9fcfd481b07e030348ca0258fcc71ef |
|
BLAKE2b-256 | b1b575bad43983786bd9b11d1c5978d1c9a2c38061896ebc31e0f579d6303a50 |