Skip to content

Instantly share code, notes, and snippets.

@RobSpectre
Created December 2, 2024 16:38
Show Gist options
  • Save RobSpectre/95fa058ea0f2553411fed1561d47e6f7 to your computer and use it in GitHub Desktop.
Save RobSpectre/95fa058ea0f2553411fed1561d47e6f7 to your computer and use it in GitHub Desktop.
import ldclient
from ldclient.config import Config
from ldclient import Context
ldclient.set_config(Config('sdk-copy-your-key-here'))
client = ldclient.get()
if __name__ == "__main__":
if client.is_initialized():
print("LaunchDarkly is successfully authenticated to your account.")
else:
print("There was an issue authenticating - is the SDK key correct?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment