skillfed

openfeature-provider-flagd

OpenFeature provider for the flagd flag evaluation engine

openfeature-provider-flagd v0.5.2 299.7K downloads/30d#7,854 on PyPI25
Permissive license Apache-2.0 Active released

What it is and what it does

This package is a provider plugin for the OpenFeature Python SDK that connects your application to flagd, an open-source flag evaluation engine. It acts as a bridge between your code and flagd's evaluation logic, allowing you to manage feature flags, A/B tests, and gradual rollouts through a standardized interface.

The provider operates in three modes: RPC (default, where flagd handles evaluation remotely via gRPC), in-process (where the provider fetches flag definitions and evaluates them locally), and file-based (offline mode using a local JSON flag configuration). Configuration is flexible—set options via constructor parameters or environment variables—and the package handles connection pooling, caching (for RPC mode), and automatic retry logic. It depends on grpcio for communication, protobuf for serialization, pyyaml for configuration parsing, and cachebox for local caching.

Use it for:

  • Manage feature flags across microservices by pointing all instances to a central flagd server for consistent flag evaluation.
  • Evaluate flags locally in-process to reduce latency and avoid external service dependencies in latency-sensitive applications.
  • Develop and test flag logic offline using a local JSON flag file without requiring a running flagd instance.
  • Implement gradual rollouts and A/B tests by updating flag definitions in flagd without redeploying application code.
  • Integrate flag evaluation into existing OpenFeature-based Python applications without rewriting flag logic.

Worth the install?

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

Integrates flagd flag evaluation into Python applications via the OpenFeature SDK, supporting both remote gRPC-based evaluation and local in-process flag resolution.

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive license, and integrates cleanly into the OpenFeature ecosystem. Install friction is low and Python 3.10+ support is current. Choose it if you are already using or planning to adopt OpenFeature and flagd for feature flag management.

Install

openfeature-provider-flagd on PyPI

pip

pip install openfeature-provider-flagd

uv

uv add openfeature-provider-flagd

poetry

poetry add openfeature-provider-flagd

Installing openfeature-provider-flagd

Before you install

Low friction installation with a pure-Python wheel. The package is actively maintained with a recent release (14 days old) and depends on established libraries: grpcio, protobuf, pyyaml, and the openfeature-sdk ecosystem. Requires Python 3.10 or later.

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions—suitable for most production and proprietary projects.

Quickstart

pip install openfeature-provider-flagd

from openfeature import api
from openfeature.contrib.provider.flagd import FlagdProvider

api.set_provider(FlagdProvider())
# Now use OpenFeature SDK to evaluate flags

Requires Python 3.10 or later. Remote RPC mode expects a flagd instance running on localhost:8013 by default; in-process and file modes have their own configuration requirements.

Verify before relying

  • Performance characteristics of in-process vs. RPC evaluation modes under typical workloads
  • Compatibility matrix with specific flagd service versions beyond v0.11.0
  • Caching behavior and memory footprint with max_cache_size set to 1000 (the default)

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 — cachebox, grpcio, openfeature-flagd-core, openfeature-sdk, protobuf, pyyaml
Maintenance actively maintained — 14 days since the last release
Last repo commit
First released
Downloads 299,723/month — #7,854 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: openfeature_provider_flagd-0.5.2-py3-none-any.whl

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

Tags

feature flag evaluation pythonflagd provider openfeatureremote flag management sdkin-process flag resolutiongrpc feature flagsflag configuration managementopenfeature integration
feature-flagsgrpcopenfeature

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

flipt-client

A Python client for Flipt feature flag…

permissive · top 15,000 on PyPI

openfeature-flagd-api

Defines the Python Protocol contract for flagd…

permissive · top 15,000 on PyPI

openfeature-flagd-core

Evaluates feature flags using JSON logic and…

permissive · top 15,000 on PyPI

openfeature-provider-ofrep

Integrates OpenFeature SDK with remote flag…

permissive · top 15,000 on PyPI

openfeature-sdk

OpenFeature Python SDK provides a…

permissive · top 5,000 on PyPI

openfeature-provider-flagsmith

Connects the OpenFeature SDK to Flagsmith for…

unclear · top 15,000 on PyPI

openfeature-provider-unleash

Integrates Unleash feature flags with…

permissive · top 15,000 on PyPI

launchdarkly-openfeature-server

Bridges LaunchDarkly's feature flag service…

permissive · top 15,000 on PyPI

flagsmith-flag-engine

Evaluates feature flags and remote…

permissive · top 5,000 on PyPI

posthog

PostHog Python SDK integrates product analytics…

permissive · top 1,000 on PyPI