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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9940b637c64b88cf1a7561797c9d5c16407711c4fe6f657ce29030342789fcef |
|
MD5 | b3e06d55544859f311b74e27ac37f2ea |
|
BLAKE2b-256 | 020fc5210d54931c0da064a5b49d7991a26c5694cb3ecfc0995cac09768274f8 |
Close
Hashes for cloudbees_openfeature_provider_python-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4403f0215a424b11b4b3988b66aea930089b10218eb6e32c3a5533ec84745ce1 |
|
MD5 | d98f94004b822022231fa1e96f66803f |
|
BLAKE2b-256 | b3e1c55e5c9e3f5c8e2ccd00ce4fcfc7e5b8b33f140fefbd4991c27cb689453c |