{"id":24157,"library":"openfeature-provider-flagd","title":"OpenFeature Provider for flagd","description":"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.","status":"active","version":"0.4.1","language":"python","source_language":"en","source_url":"https://github.com/open-feature/python-sdk-contrib","tags":["openfeature","flagd","feature-flags","gRPC","provider"],"install":[{"cmd":"pip install openfeature-provider-flagd","lang":"bash","label":"Stable release"}],"dependencies":[{"reason":"Core OpenFeature SDK for Python is required.","package":"openfeature-sdk","optional":false},{"reason":"Required for gRPC communication with flagd.","package":"grpcio","optional":false}],"imports":[{"wrong":"from openfeature.provider.flagd import FlagdProvider","symbol":"FlagdProvider","correct":"from openfeature.contrib.providers.flagd import FlagdProvider"}],"quickstart":{"code":"import os\nfrom openfeature import api\nfrom openfeature.provider.flagd import FlagdProvider\n\n# Initialize the provider with a flagd host (default localhost:8013)\nprovider = FlagdProvider(host=os.environ.get('FLAGD_HOST', 'localhost'), port=8013)\napi.set_provider(provider)\nclient = api.get_client()\n\n# Evaluate a boolean flag\nflag_value = client.get_boolean_value(\"my-flag\", False)\nprint(f\"Flag value: {flag_value}\")","lang":"python","description":"Set up the flagd provider and evaluate a boolean flag."},"warnings":[{"fix":"Ensure your runtime uses Python 3.10 or later.","message":"Python 3.9 support dropped in v0.4.0. Upgrade to Python >=3.10.","severity":"breaking","affected_versions":">=0.4.0"},{"fix":"Review fractional bucketing configuration and test your flag rules after upgrade.","message":"Fractional bucketing behaviour changed in v0.4.0. Existing targetting rules may produce different results.","severity":"breaking","affected_versions":">=0.4.0 <0.4.0? Actually introduced in 0.4.0"},{"fix":"If you rely on exceptions for missing defaults, adjust your error handling.","message":"Graceful 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.","severity":"breaking","affected_versions":">=0.3.0"},{"fix":"Use 'from openfeature.provider.flagd import FlagdProvider'.","message":"The old import path 'from flagd import FlagdProvider' is deprecated.","severity":"deprecated","affected_versions":">=0.3.0"},{"fix":"Configure timeout via FlagdProvider(host=..., port=..., timeout=5) to fail fast.","message":"gRPC connection failure may not raise immediately; default timeout may cause delayed errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.4.1':34 '3.10':37 'activ':38 'connect':18 'current':32 'develop':39 'engin':16 'evalu':15,31 'featur':46 'feature-flag':45 'flag':14,47 'flagd':4,13,21,44 'frequent':41 'grpc':24,48 'in-process':26 'instanc':22 'openfeatur':1,9,43 'packag':6 'process':28 'provid':2,7,10,49 'python':36 'releas':42 'remot':30 'requir':35 'support':25 'version':33 'via':23","created_at":"2026-05-01T08:11:35.059609+00:00","updated_at":"2026-05-01T08:11:35.059609+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nModuleNotFoundError: No module named 'openfeature.contrib.providers'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.5.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/open-feature/python-sdk-contrib","docs":null,"changelog":null,"pypi":"https://pypi.org/project/openfeature-provider-flagd/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}