--- id: openfeature-sdk version: "0.10.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # openfeature-sdk — Standardizing Feature Flagging for Everyone License: permissive · Maintenance: active · Downloads: 2.3M/mo ## 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 above — 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 pip install openfeature-sdk uv add openfeature-sdk 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_current - Install friction: low - Maintenance: active - Downloads: 2.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags feature flag sdk, feature toggles, vendor-agnostic flag management, openfeature python, flag evaluation api, feature flag abstraction, flag provider integration, feature-flags, vendor-agnostic, experimentation [View on SkillFed](https://skillfed.io/packages/openfeature-sdk) · [View on PyPI](https://pypi.org/project/openfeature-sdk/)