Python client features:
View featureflagtech on pypi.
Install the client into your application via pip:
pip install featureflagtech
Now require in the client and instantiate it. You need to pass the URL of your feature flag.
from featureflagtech import FeatureFlag
fft = FeatureFlag({"apiKey": "b6b3f5c8-c7ce-48c4-a1a2-0e0e43be626c"})
if fft.get("flagName"):
# do new stuff
else:
#do old stuff
You can interogate the client for flag value:
fft.get( "newFeature" );
This can be used as a condition in if
statements.