FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

python-client/README.md at master · dronedeploy/python-client · GitHub

This repository was archived by the owner on May 5, 2022. It is now read-only.

Latest commit

 

History

History
69 lines (50 loc) · 4.02 KB

File metadata and controls

69 lines (50 loc) · 4.02 KB

LaunchDarkly SDK for Python

Quick setup

  1. Install the Python SDK with pip

     pip install ldclient-py
    
  2. Configure the library with your sdk key:

     import ldclient
     ldclient.sdk_key = "your sdk key"
    
  3. Get the client:

     client = ldclient.get()
    

Your first feature flag

  1. Create a new feature flag on your dashboard

  2. 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
    

Learn more

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.

Contributing

See CONTRIBUTING for more information.

About LaunchDarkly


Back | FazBrowse Home | New Git URL