forked from launchdarkly/python-server-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
LaunchDarkly SDK for Python
slindstr/python-client
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
LaunchDarkly SDK for Python
===========================
Quick setup
-----------
1. Install the Python SDK with `pip`
pip install ldclient-py
2. Create a new LDClient with your API key:
client = LDClient("your_api_key")
Your first feature flag
-----------------------
1. Create a new feature flag on your [dashboard](https://app.launchdarkly.com)
2. In your application code, use the feature's key to check wthether the flag is on for each user:
if client.get_flag("your.flag.key", {"key": "[email protected]"}, false):
# application code to show the feature
else:
# the code to run if the feature is offAbout
LaunchDarkly SDK for Python
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published