--- id: openfeature-provider-flagd version: "0.5.2" license: Apache-2.0 license_treatment: permissive maintenance: active --- # openfeature-provider-flagd — OpenFeature provider for the flagd flag evaluation engine License: permissive · Maintenance: active · Downloads: 299.7K/mo ## 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 above — 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 pip install openfeature-provider-flagd uv add openfeature-provider-flagd 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_current - Install friction: low - Maintenance: active - Downloads: 299.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags feature flag evaluation python, flagd provider openfeature, remote flag management sdk, in-process flag resolution, grpc feature flags, flag configuration management, openfeature integration, feature-flags, grpc, openfeature [View on SkillFed](https://skillfed.io/packages/openfeature-provider-flagd) · [View on PyPI](https://pypi.org/project/openfeature-provider-flagd/)