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

dronedeploy/python-client

 
 

Repository files navigation

LaunchDarkly SDK for Python

Circle CI PyPI PyPI Twitter Follow

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": "[email protected]"}, 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

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%