Skip to content

Minimal Example using LaunchDarkly Server-Side Python SDK with OpenFeature

Notifications You must be signed in to change notification settings

launchdarkly/hello-openfeature-python-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LaunchDarkly Sample OpenFeature Python Server application

Build and run

We've built a simple console script that demonstrates how LaunchDarkly's OpenFeature provider works.

Build instructions

  1. Install the project dependencies by running poetry install
  2. Set the environment variable LAUNCHDARKLY_SDK_KEY to your LaunchDarkly SDK key.
  3. Set the environment variable LAUNCHDARKLY_FLAG_KEY to the LaunchDarkly boolean flag key you wish to evaluate.
  4. Run poetry run python main.py.

You should see the message "The <flag key> feature flag evaluates to <true/false>".