Skip to content

ryanczarny/hello-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaunchDarkly sample Python application

Build and run

We've built a console application that demonstrates how LaunchDarkly's SDK works.

Below, you'll find the basic build procedure. For more comprehensive instructions, you can visit your Quickstart page or the Python SDK reference guide.

This demo requires Python version 3.7 or higher.

Build instructions

  1. Install the LaunchDarkly Python SDK by running pip install -r requirements.txt

  2. On the command line, set the value of the environment variable LAUNCHDARKLY_SERVER_KEY to your LaunchDarkly SDK key.

    export LAUNCHDARKLY_SERVER_KEY="1234567890abcdef"
  3. On the command line, set the value of the environment variable LAUNCHDARKLY_FLAG_KEY to an existing boolean feature flag in your LaunchDarkly project that you want to evaluate.

    export LAUNCHDARKLY_FLAG_KEY="my-boolean-flag"
  4. Run python test.py.

You should receive the message "Feature flag '<flag key>' is <true/false> for this context".

About

Hello LaunchDarkly for Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%