skillfed

openfeature-provider-unleash

OpenFeature provider for Unleash

openfeature-provider-unleash v0.1.2 105.6K downloads/30d#12,689 on PyPI25
Permissive license Apache-2.0 Active released

What it is and what it does

This package bridges Unleash feature flag management and the OpenFeature SDK, a vendor-neutral abstraction layer for feature flags in Python. It wraps the UnleashClient and exposes flag evaluation through OpenFeature's standardized API, allowing you to evaluate boolean, string, integer, float, and object flags with context-aware targeting. The provider maps OpenFeature's EvaluationContext (targeting_key and attributes) to Unleash's context model and emits events when the provider is ready, encounters errors, or flag configurations change. You configure it with an Unleash server URL, application name, and API token, then set it as the active provider in the OpenFeature SDK.

Typical use is in applications that want to decouple feature flag logic from a specific vendor—you write flag evaluation code against OpenFeature's API, and this provider handles the Unleash-specific protocol and state management. It supports event handlers for monitoring provider lifecycle and flag changes, and provides a shutdown method for clean teardown. The package is actively maintained, has no known vulnerabilities, and carries a permissive Apache-2.0 license.

Use it for:

  • Standardize feature flag evaluation across a Python codebase by using OpenFeature's unified API instead of direct Unleash client calls.
  • Migrate from another feature flag provider to Unleash without rewriting application flag evaluation logic—swap the provider implementation.
  • Monitor flag state changes and provider errors in real time using OpenFeature event handlers for operational visibility.
  • Implement context-aware targeting by mapping user IDs and session attributes from your application context to Unleash evaluation rules.
  • Evaluate variant flags (string, integer, float, object payloads) to power A/B tests, canary deployments, or dynamic configuration.

Worth the install?

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

Integrates Unleash feature flags with OpenFeature SDK, enabling standardized flag evaluation and context-aware feature toggling in Python applications.

Yes. The package is actively maintained, has zero known vulnerabilities, low install friction, and a permissive license. Install it if you are already using OpenFeature SDK and want Unleash as your flag provider, or if you want to standardize flag evaluation across multiple vendors. Not necessary if you are using Unleash directly without OpenFeature abstraction.

Install

openfeature-provider-unleash on PyPI

pip

pip install openfeature-provider-unleash

uv

uv add openfeature-provider-unleash

poetry

poetry add openfeature-provider-unleash

Installing openfeature-provider-unleash

Before you install

Low friction installation with a pure Python wheel. Active maintenance—last commit 2026-08-12, 151 days since latest release. Depends on openfeature-sdk and unleashclient, both standard runtime dependencies.

License in practice

Apache-2.0 permissive license allows use in commercial and private projects with minimal restrictions; attribution required but no copyleft obligations.

Quickstart

pip install openfeature-provider-unleash

from openfeature import api
from openfeature.contrib.provider.unleash import UnleashProvider

provider = UnleashProvider(
    url="https://my-unleash-instance.com",
    app_name="my-python-app",
    api_token="my-api-token"
)
provider.initialize()
api.set_provider(provider)

client = api.get_client()
is_enabled = client.get_boolean_value("my-feature", False)

Requires Python 3.9+, openfeature-sdk>=0.8.2, and UnleashClient>=6.3.0; provider.initialize() must be called before flag evaluation.

Verify before relying

  • Whether variant payload parsing (string, integer, float, object types) handles all Unleash payload formats correctly
  • Performance characteristics under high-frequency flag evaluation or large context attribute sets
  • Whether PROVIDER_STALE event support is planned or deprecated

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 2 — openfeature-sdk, unleashclient
Maintenance actively maintained — 151 days since the last release
Last repo commit
First released
Downloads 105,612/month — #12,689 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: openfeature_provider_unleash-0.1.2-py3-none-any.whl

Programming Language :: PythonProgramming Language :: Python :: 3

Tags

feature flag provider openfeatureunleash integration pythonfeature toggle management sdkopenfeature unleash providerflag evaluation context mappingfeature flag orchestrationunleash client wrapper
feature-flagsopenfeatureunleash

More Application Frameworks packages