skillfed

launchdarkly-server-sdk

LaunchDarkly SDK for Python

launchdarkly-server-sdk v9.16.1 11.8M downloads/30d#1,366 on PyPI44
Permissive license Apache-2.0 Active released

What it is and what it does

The LaunchDarkly Server-side SDK is a client library that connects your Python backend to LaunchDarkly's feature flag platform. It allows you to evaluate feature flags at runtime, enabling you to control feature rollouts, A/B tests, and gradual deployments without code changes or redeployment. The SDK handles flag evaluation, event tracking, and streaming updates from the LaunchDarkly service.

The package depends on standard HTTP and serialization libraries (urllib3, certifi, pyrfc3339, semver) plus LaunchDarkly's own eventsource library for server-sent event streaming. It's designed for server-side use where you control the SDK lifecycle and can maintain a persistent connection to LaunchDarkly. The SDK requires Python 3.10 or later and is actively maintained with regular updates.

Use it for:

  • Roll out new features to a subset of users (beta testers) and gather feedback before full release.
  • Gradually increase the percentage of users seeing a new feature while monitoring key metrics.
  • Disable problematic features in production instantly without redeployment or restart.
  • Grant feature access based on user attributes (e.g., payment tier, user group membership).
  • Run A/B tests by serving different feature variants to different user cohorts.
  • Manage maintenance windows by toggling dependent features on and off without downtime.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A server-side SDK for integrating LaunchDarkly's feature flag service into Python applications, enabling runtime feature toggling and gradual rollouts without redeployment.

Yes. The SDK is actively maintained, has no known vulnerabilities, low install friction, and permissive licensing. It's well-suited for any Python backend that needs runtime feature control tied to LaunchDarkly's platform. Install if you are already using or planning to adopt LaunchDarkly; otherwise, evaluate whether the platform's cost and operational overhead fit your feature management needs.

Install

launchdarkly-server-sdk on PyPI

pip

pip install launchdarkly-server-sdk

uv

uv add launchdarkly-server-sdk

poetry

poetry add launchdarkly-server-sdk

Installing launchdarkly-server-sdk

Before you install

Low install friction with a pure-Python wheel and six stable runtime dependencies. Active maintenance with a release within the past month and recent repository activity.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production environments.

Quickstart

pip install launchdarkly-server-sdk

from launchdarkly_server_sdk import Context, Config

config = Config("your-sdk-key")
client = config.create_client()
context = Context.builder("user-key").build()
flag_value = client.variation("flag-key", context, False)

Requires Python 3.10 or later; requires a valid LaunchDarkly SDK key from the LaunchDarkly platform.

Verify before relying

  • Whether the SDK supports offline mode or local flag caching for resilience.
  • Performance characteristics and throughput limits for high-volume flag evaluations.
  • Exact event batching and network retry behavior under adverse conditions.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 6 — certifi, expiringdict, launchdarkly-eventsource, pyrfc3339, semver, urllib3
Maintenance actively maintained — 21 days since the last release
Last repo commit
First released
Downloads 11,752,131/month — #1,366 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: launchdarkly_server_sdk-9.16.1-py3-none-any.whl

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software DevelopmentTopic :: Software Development :: Libraries

Tags

feature flags pythonfeature management sdklaunchdarkly server sdkruntime feature togglesgradual rollout controlfeature flag evaluationserver-side feature management
feature-flagsfeature-managementcontinuous-delivery

More Software Development packages

typing-extensions

Provides backported and experimental type hints…

permissive · top 100 on PyPI

numpy

NumPy provides an N-dimensional array object…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

annotated-doc

Provides a way to document function parameters,…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

distlib

Distlib provides low-level packaging utilities…

permissive · top 1,000 on PyPI

launchdarkly-api

A Python client library for LaunchDarkly's REST…

permissive · top 15,000 on PyPI

launchdarkly-openfeature-server

Bridges LaunchDarkly's feature flag service…

permissive · top 15,000 on PyPI

configcat-client

A Python SDK for integrating ConfigCat's…

permissive · top 5,000 on PyPI

launchdarkly-eventsource

Consumes Server-Sent Events (SSE) from remote…

permissive · top 5,000 on PyPI

flagsmith

Flagsmith is a Python SDK for managing feature…

permissive · top 5,000 on PyPI

splitio-client

A Python client SDK for integrating Split…

permissive · top 15,000 on PyPI

statsig

Statsig is a Python server SDK for managing…

permissive · top 5,000 on PyPI

UnleashClient

A server-side Python SDK for integrating with…

permissive · top 5,000 on PyPI

amplitude-experiment

Provides server-side A/B testing and feature…

permissive · top 15,000 on PyPI

optimizely-sdk

Provides A/B testing, feature flagging, and…

permissive · top 15,000 on PyPI