Skip to main content

GrowthBook provider for OpenFeature

Project description

GrowthBook OpenFeature Provider

This package provides a GrowthBook provider implementation for OpenFeature SDK in Python.

Installation

bash pip install growthbook-openfeature-provider python from openfeature import api from growthbook_openfeature_provider import GrowthBookProvider, GrowthBookProviderOptions async def main(): options = GrowthBookProviderOptions( api_host="https://cdn.growthbook.io", client_key="your-client-key" ) provider = GrowthBookProvider(options) await provider.initialize() api.set_provider(provider) client = api.get_client()

Use feature flags

value = await client.get_boolean_value("my-feature", False) print(f"Feature flag value: {value}") : bash git clone https://github.com/yourusername/growthbook-openfeature-provider.git cd growthbook-openfeature-provider : bash python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate : bash pip install -e ".[dev]" : bash pytest : bash black . isort .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

growthbook_openfeature_provider-0.0.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file growthbook_openfeature_provider-0.0.1.tar.gz.

File metadata

File hashes

Hashes for growthbook_openfeature_provider-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d05192e357720d3d48b543d29bd159eda8883aee7503cf6e9382c3e322c8eee0
MD5 a6a772708cfcefb277e70f0b113c2bbd
BLAKE2b-256 7d3ac16800253db4edc318f28c14e2885b7e028be02b0586b9e426385346f35f

See more details on using hashes here.

File details

Details for the file growthbook_openfeature_provider-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for growthbook_openfeature_provider-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a35e1574e1fffcd5886b9fa274373c9671c2d588f71f1ad499e33f484cccc182
MD5 55f028829d3816eaab7d8e9578b8ecf8
BLAKE2b-256 0fb966cfdc23f29ff3289d413c6b9f1af2ce0e197514a3487b00e0203935725d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page