| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
Install the Python SDK with pip
pip install ldclient-py
Configure the library with your sdk key:
import ldclient ldclient.sdk_key = "your sdk key"
Get the client:
client = ldclient.get()
Create a new feature flag on your dashboard
In your application code, use the feature's key to check wthether the flag is on for each user:
if client.variation("your.flag.key", {"key": "user@test.com"}, False):
# application code to show the feature
else:
# the code to run if the feature is off
Check out our documentation for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the complete reference guide for this SDK.
See CONTRIBUTING for more information.
| Back | FazBrowse Home | New Git URL |