Skip to content

bookmd/cloudbees-openfeature-provider-python

This branch is 14 commits behind rollout/cloudbees-openfeature-provider-python:main.

Folders and files

NameName
Last commit message
Last commit date
Dec 22, 2023
Jan 19, 2024
Dec 22, 2023
Dec 22, 2023
Feb 8, 2024
Jan 4, 2024
Dec 22, 2023
Dec 22, 2023
Jan 31, 2024
Dec 21, 2023

Repository files navigation

CloudBees Feature Management provider for OpenFeature

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. a OpenFeature Specification OpenFeature SDK CloudBees Rox SDK

This is the CloudBees provider implementation for OpenFeature for the Python SDK.

OpenFeature provides a vendor-agnostic abstraction layer on Feature Flag management.

This provider allows the use of CloudBees Feature Management as a backend for Feature Flag configurations.

Requirements

  • python 3.8 or higher

Installation

Add it to your build

pip install cloudbees-openfeature-provider-python

Confirm peer dependencies are installed

pip install openfeature-sdk

Configuration

Follow the instructions on the Python SDK project for how to use the Python SDK.

You can configure the CloudBees provider by doing the following:

from openfeature import api
from openfeature.api import EvaluationContext
from cloudbees.provider import CloudbeesProvider

appKey = 'INSERT_APP_KEY_HERE'
provider = CloudbeesProvider(appKey)
api.set_provider(provider)
client = api.get_client()
value = client.get_boolean_value("enabled-new-feature", False)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%