Registry /
devops / openfeature-provider-flagd
Install & Compatibility
Where this runs
tested against v0.5.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
py 3.9
✕ build_error
✕ build_error
43MB installed
● package 43MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
FlagdProvider
✓ from openfeature.contrib.providers.flagd import FlagdProvider
✗ from openfeature.provider.flagd import FlagdProvider
Set up the flagd provider and evaluate a boolean flag.
import os
from openfeature import api
from openfeature.provider.flagd import FlagdProvider
# Initialize the provider with a flagd host (default localhost:8013)
provider = FlagdProvider(host=os.environ.get('FLAGD_HOST', 'localhost'), port=8013)
api.set_provider(provider)
client = api.get_client()
# Evaluate a boolean flag
flag_value = client.get_boolean_value("my-flag", False)
print(f"Flag value: {flag_value}")
Debug
Known issues
breakingPython 3.9 support dropped in v0.4.0. Upgrade to Python >=3.10.fixEnsure your runtime uses Python 3.10 or later.
affects: >=0.4.0
breakingFractional bucketing behaviour changed in v0.4.0. Existing targetting rules may produce different results.fixReview fractional bucketing configuration and test your flag rules after upgrade.
affects: >=0.4.0 <0.4.0? Actually introduced in 0.4.0
breakingGraceful fallback to code default changed in v0.3.0: when no default variant is configured, the provider now returns the code default instead of raising an error.fixIf you rely on exceptions for missing defaults, adjust your error handling.
affects: >=0.3.0
deprecatedThe old import path 'from flagd import FlagdProvider' is deprecated.fixUse 'from openfeature.provider.flagd import FlagdProvider'.
affects: >=0.3.0
gotchagRPC connection failure may not raise immediately; default timeout may cause delayed errors.fixConfigure timeout via FlagdProvider(host=..., port=..., timeout=5) to fail fast.
affects: all
Upgrade
Version history
0.5.0latest on PyPI · released Jun 3, 2026
Audit
Dependencies
openfeature-sdkrequiredCore OpenFeature SDK for Python is required.
grpciorequiredRequired for gRPC communication with flagd.