We've built a simple console script that demonstrates how LaunchDarkly's OpenFeature provider works.
- Install the project dependencies by running
poetry install - Set the environment variable
LAUNCHDARKLY_SDK_KEYto your LaunchDarkly SDK key. - Set the environment variable
LAUNCHDARKLY_FLAG_KEYto the LaunchDarkly boolean flag key you wish to evaluate. - Run
poetry run python main.py.
You should see the message "The <flag key> feature flag evaluates to <true/false>".