CloudBees.com OpenFeature SDK
Project description
CloudBees Feature Management provider for OpenFeature
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cloudbees-openfeature-provider-python-0.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ae4f1ba8fb574d7118014418956fedd0523ed65eeed6b3b361d37cd29e58137 |
|
MD5 | 661ee33b3ac56be6e225fdfa2fa376e5 |
|
BLAKE2b-256 | e657c1f74a218bcd813d03eb20dfeb07d928274bbacb2b648b9149e6c755c0d3 |
Close
Hashes for cloudbees_openfeature_provider_python-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be6c518583b78962321f87528abd43bce4006a0af418b18898a512d094e1b8c8 |
|
MD5 | 154c1d111b155631a7cd5427f1d3eaa2 |
|
BLAKE2b-256 | bbcc739112da9c964414f26994bbe3a71597bfc105cfc8a079a37e30f91c092c |