Registry / devops / openfeature-provider-flagd

openfeature-provider-flagd

JSON →
library0.5.0pypypiunverified

This package provides an OpenFeature provider for the flagd flag evaluation engine. It connects to a flagd instance via gRPC, supporting in-process and remote evaluation. Current version: 0.4.1. Requires Python >=3.10. Active development with frequent releases.

pip install openfeature-provider-flagd
INSTALL
IMPORT
SIG · OPENFEATURE-PROVID
O
openfeature-provider-flagd
devopspythonv0.5.0
Install
3.9s avg
Import
Disk
43MB
Pass rate
8/ 10
Env Coverage8 / 10
glibc
3.93.13
musl
3.93.13
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
musl
glibc
py 3.10
✓ —
✓ 4.8s
py 3.11
✓ —
✓ 4.4s
py 3.12
✓ —
✓ 3.1s
py 3.13
✓ —
✓ 3.4s
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.
fix
Ensure 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.
fix
Review 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.
fix
If 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.
fix
Use 'from openfeature.provider.flagd import FlagdProvider'.
affects: >=0.3.0
gotchagRPC connection failure may not raise immediately; default timeout may cause delayed errors.
fix
Configure 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.
Agent activity
2 hits · last 30 days
node
2
Resources
openfeature-provider-flagd — pip install openfeature-provider-flagd · libregistry