cloudbees-openfeature-provider-python


Namecloudbees-openfeature-provider-python JSON
Version 0.1.4 PyPI version JSON
download
home_page
SummaryCloudBees.com OpenFeature SDK
upload_time2024-02-09 00:28:07
maintainer
docs_urlNone
author
requires_python>=3.8
license
keywords cloudbees openfeature
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![a](https://img.shields.io/badge/slack-%40cncf%2Fopenfeature-brightgreen?style=flat&logo=slack)](https://cloud-native.slack.com/archives/C0344AANLA1)
[![OpenFeature Specification](https://img.shields.io/static/v1?label=OpenFeature%20Specification&message=v0.3.0&color=red)](https://github.com/open-feature/spec/tree/v0.3.0)
[![OpenFeature SDK](https://img.shields.io/static/v1?label=OpenFeature%20SDK&message=v1.0.0&color=green)](https://github.com/open-feature/python-sdk/)
[![CloudBees Rox SDK](https://img.shields.io/static/v1?label=Rox%20SDK&message=v5.0.10&color=green)](https://pypi.org/project/rox/)

This is the [CloudBees](https://www.cloudbees.com/products/feature-management) provider implementation for [OpenFeature](https://openfeature.dev/) for the [Python SDK](https://github.com/open-feature/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

```bash
pip install cloudbees-openfeature-provider-python
```

### Confirm peer dependencies are installed
```bash
pip install openfeature-sdk
```


### Configuration

Follow the instructions on the [Python SDK project](https://github.com/open-feature/python-sdk) for how to use the Python SDK.

You can configure the CloudBees provider by doing the following:

```python
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)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "cloudbees-openfeature-provider-python",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "CloudBees,OpenFeature",
    "author": "",
    "author_email": "CloudBees <support@cloudbees.com>",
    "download_url": "https://files.pythonhosted.org/packages/e6/57/c1f74a218bcd813d03eb20dfeb07d928274bbacb2b648b9149e6c755c0d3/cloudbees-openfeature-provider-python-0.1.4.tar.gz",
    "platform": null,
    "description": "# CloudBees Feature Management provider for OpenFeature\n\n[![Project Status: WIP \u2013 Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)\n[![a](https://img.shields.io/badge/slack-%40cncf%2Fopenfeature-brightgreen?style=flat&logo=slack)](https://cloud-native.slack.com/archives/C0344AANLA1)\n[![OpenFeature Specification](https://img.shields.io/static/v1?label=OpenFeature%20Specification&message=v0.3.0&color=red)](https://github.com/open-feature/spec/tree/v0.3.0)\n[![OpenFeature SDK](https://img.shields.io/static/v1?label=OpenFeature%20SDK&message=v1.0.0&color=green)](https://github.com/open-feature/python-sdk/)\n[![CloudBees Rox SDK](https://img.shields.io/static/v1?label=Rox%20SDK&message=v5.0.10&color=green)](https://pypi.org/project/rox/)\n\nThis is the [CloudBees](https://www.cloudbees.com/products/feature-management) provider implementation for [OpenFeature](https://openfeature.dev/) for the [Python SDK](https://github.com/open-feature/python-sdk).\n\nOpenFeature provides a vendor-agnostic abstraction layer on Feature Flag management.\n\nThis provider allows the use of CloudBees Feature Management as a backend for Feature Flag configurations.\n\n## Requirements\n- python 3.8 or higher\n\n## Installation\n\n### Add it to your build\n\n```bash\npip install cloudbees-openfeature-provider-python\n```\n\n### Confirm peer dependencies are installed\n```bash\npip install openfeature-sdk\n```\n\n\n### Configuration\n\nFollow the instructions on the [Python SDK project](https://github.com/open-feature/python-sdk) for how to use the Python SDK.\n\nYou can configure the CloudBees provider by doing the following:\n\n```python\nfrom openfeature import api\nfrom openfeature.api import EvaluationContext\nfrom cloudbees.provider import CloudbeesProvider\n\nappKey = 'INSERT_APP_KEY_HERE'\nprovider = CloudbeesProvider(appKey)\napi.set_provider(provider)\nclient = api.get_client()\nvalue = client.get_boolean_value(\"enabled-new-feature\", False)\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "CloudBees.com OpenFeature SDK",
    "version": "0.1.4",
    "project_urls": {
        "homepage": "https://github.com/rollout/cloudbees-openfeature-provider-python"
    },
    "split_keywords": [
        "cloudbees",
        "openfeature"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "bbcc739112da9c964414f26994bbe3a71597bfc105cfc8a079a37e30f91c092c",
                "md5": "154c1d111b155631a7cd5427f1d3eaa2",
                "sha256": "be6c518583b78962321f87528abd43bce4006a0af418b18898a512d094e1b8c8"
            },
            "downloads": -1,
            "filename": "cloudbees_openfeature_provider_python-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "154c1d111b155631a7cd5427f1d3eaa2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 7921,
            "upload_time": "2024-02-09T00:28:06",
            "upload_time_iso_8601": "2024-02-09T00:28:06.455738Z",
            "url": "https://files.pythonhosted.org/packages/bb/cc/739112da9c964414f26994bbe3a71597bfc105cfc8a079a37e30f91c092c/cloudbees_openfeature_provider_python-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e657c1f74a218bcd813d03eb20dfeb07d928274bbacb2b648b9149e6c755c0d3",
                "md5": "661ee33b3ac56be6e225fdfa2fa376e5",
                "sha256": "6ae4f1ba8fb574d7118014418956fedd0523ed65eeed6b3b361d37cd29e58137"
            },
            "downloads": -1,
            "filename": "cloudbees-openfeature-provider-python-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "661ee33b3ac56be6e225fdfa2fa376e5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8224,
            "upload_time": "2024-02-09T00:28:07",
            "upload_time_iso_8601": "2024-02-09T00:28:07.991185Z",
            "url": "https://files.pythonhosted.org/packages/e6/57/c1f74a218bcd813d03eb20dfeb07d928274bbacb2b648b9149e6c755c0d3/cloudbees-openfeature-provider-python-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-09 00:28:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rollout",
    "github_project": "cloudbees-openfeature-provider-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "cloudbees-openfeature-provider-python"
}
        
Elapsed time: 0.18413s