openfeature-sdk
Standardizing Feature Flagging for Everyone
What it is and what it does
OpenFeature Python SDK is a standardized, vendor-agnostic API for feature flagging. It sits between your application and a feature flag management tool (like LaunchDarkly, Unleash, or an in-house system), providing a consistent interface for flag evaluation regardless of which provider you choose. You define flags through a pluggable provider system, then evaluate them using simple client methods that return boolean, string, numeric, or object values.
The SDK supports contextual flag evaluation (targeting based on user or request attributes), hooks for injecting logic into the evaluation lifecycle, domains for binding multiple providers in one app, and eventing to react to provider state changes. It has no external runtime dependencies, installs cleanly, and supports modern Python versions (3.10–3.14). The specification is community-driven and vendor-neutral, designed to reduce lock-in to any single flag management platform.
Use it for:
- Evaluate feature flags in a Python web application without being locked into a specific flag management vendor.
- Implement A/B testing or gradual rollouts by evaluating flags with user or request context to target specific segments.
- Integrate custom or in-house flag management systems by implementing a provider that conforms to the OpenFeature specification.
- Add pre- and post-evaluation hooks to log flag evaluations, track experiments, or validate flag values before use.
- Migrate between feature flag platforms by swapping providers without changing application code.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
OpenFeature Python SDK provides a vendor-agnostic API for feature flagging that abstracts away the underlying flag management tool, letting you evaluate flags with a consistent interface regardless of provider.
Yes. The SDK is actively maintained, has no external dependencies, supports current Python versions, and is licensed permissively. Install it if you need a vendor-agnostic abstraction for feature flagging or are evaluating the OpenFeature ecosystem. The main consideration is whether your chosen flag management tool has an available provider; check the OpenFeature ecosystem before committing.
Install
openfeature-sdk on PyPI
pip
pip install openfeature-sdkuv
uv add openfeature-sdkpoetry
poetry add openfeature-sdkInstalling openfeature-sdk
Before you install
Low install friction with no runtime dependencies. Actively maintained with a recent release (74 days ago) and ongoing commits. Supports current Python versions (3.10 through 3.14).
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install openfeature-sdk==0.10.0
from openfeature import api
from openfeature.provider.in_memory_provider import InMemoryFlag, InMemoryProvider
my_flags = {"v2_enabled": InMemoryFlag("on", {"on": True, "off": False})}
api.set_provider(InMemoryProvider(my_flags))
client = api.get_client()
flag_value = client.get_boolean_value("v2_enabled", False)
print("Value: " + str(flag_value))
Requires Python 3.10 or later.
Verify before relying
- Whether the ecosystem of available providers (commercial, open-source, in-house) is mature enough for your specific flag management tool.
- Performance characteristics when evaluating flags at high frequency or with large evaluation contexts.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 74 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,271,669/month — #3,178 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openfeature_sdk-0.10.0-py3-none-any.whl
Keywords: feature, flags, openfeature, toggles
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
openfeature-provider-flagsmithConnects the OpenFeature SDK to Flagsmith for…
unclear · top 15,000 on PyPI
openfeature-provider-ofrepIntegrates OpenFeature SDK with remote flag…
permissive · top 15,000 on PyPI
openfeature-provider-unleashIntegrates Unleash feature flags with…
permissive · top 15,000 on PyPI
openfeature-provider-flagdIntegrates flagd flag evaluation into Python…
permissive · top 15,000 on PyPI
openfeature-flagd-coreEvaluates feature flags using JSON logic and…
permissive · top 15,000 on PyPI
posthogPostHog Python SDK integrates product analytics…
permissive · top 1,000 on PyPI
launchdarkly-openfeature-serverBridges LaunchDarkly's feature flag service…
permissive · top 15,000 on PyPI
openfeature-flagd-apiDefines the Python Protocol contract for flagd…
permissive · top 15,000 on PyPI
flagsmithFlagsmith is a Python SDK for managing feature…
permissive · top 5,000 on PyPI
configcat-clientA Python SDK for integrating ConfigCat's…
permissive · top 5,000 on PyPI