skillfed

openfeature-sdk

Standardizing Feature Flagging for Everyone

openfeature-sdk v0.10.0 2.3M downloads/30d#3,178 on PyPI107
Permissive license Apache-2.0 Active released

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-sdk

uv

uv add openfeature-sdk

poetry

poetry add openfeature-sdk

Installing 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

Programming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

feature flag sdkfeature togglesvendor-agnostic flag managementopenfeature pythonflag evaluation apifeature flag abstractionflag provider integration
feature-flagsvendor-agnosticexperimentation

More Application Frameworks packages

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

textual

Textual is a Python framework for building…

permissive · top 100 on PyPI

typer

Typer builds command-line applications from…

permissive · top 1,000 on PyPI

mcp

Build and connect to Model Context Protocol…

permissive · top 1,000 on PyPI

Werkzeug

Werkzeug is a WSGI utility library providing…

permissive · top 1,000 on PyPI

openfeature-provider-flagsmith

Connects the OpenFeature SDK to Flagsmith for…

unclear · top 15,000 on PyPI

openfeature-provider-ofrep

Integrates OpenFeature SDK with remote flag…

permissive · top 15,000 on PyPI

openfeature-provider-unleash

Integrates Unleash feature flags with…

permissive · top 15,000 on PyPI

openfeature-provider-flagd

Integrates flagd flag evaluation into Python…

permissive · top 15,000 on PyPI

openfeature-flagd-core

Evaluates feature flags using JSON logic and…

permissive · top 15,000 on PyPI

posthog

PostHog Python SDK integrates product analytics…

permissive · top 1,000 on PyPI

launchdarkly-openfeature-server

Bridges LaunchDarkly's feature flag service…

permissive · top 15,000 on PyPI

openfeature-flagd-api

Defines the Python Protocol contract for flagd…

permissive · top 15,000 on PyPI

flagsmith

Flagsmith is a Python SDK for managing feature…

permissive · top 5,000 on PyPI

configcat-client

A Python SDK for integrating ConfigCat's…

permissive · top 5,000 on PyPI