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

dronedeploy/python-client: LaunchDarkly SDK for Python · GitHub

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

Repository files navigation

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

About

LaunchDarkly SDK for Python

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL