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
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
File details
Details for the file cloudbees_openfeature_provider_python-0.1.5.tar.gz
.
File metadata
- Download URL: cloudbees_openfeature_provider_python-0.1.5.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bd9631265ce5dbc8581f0d66794bfc71279757b078873e4b886f190fee64f87 |
|
MD5 | 9f3d17aabeb19e8fe9407a19daaceb27 |
|
BLAKE2b-256 | 0db5a749539caac9c64213a94a6411ae3d7807839812b879c0eb0c2fb449e57b |
File details
Details for the file cloudbees_openfeature_provider_python-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: cloudbees_openfeature_provider_python-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a79a9b78412a5aa2a32ebb6ba5c830fa2eae33d25260455cf51402052413d050 |
|
MD5 | 663a700f68a4eb73e574142999c35076 |
|
BLAKE2b-256 | b3c35cfe1db773eb731a42e761766caeecf0b812c13c8ee62e819ddf17df0d26 |