cloudbees-openfeature-provider-python


Namecloudbees-openfeature-provider-python JSON
Version 0.1.5 PyPI version JSON
download
home_pageNone
SummaryCloudBees.com OpenFeature SDK
upload_time2024-09-26 22:05:17
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords cloudbees openfeature
VCS
bugtrack_url
requirements openfeature-sdk rox
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": null,
    "name": "cloudbees-openfeature-provider-python",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "CloudBees, OpenFeature",
    "author": null,
    "author_email": "CloudBees <support@cloudbees.com>",
    "download_url": "https://files.pythonhosted.org/packages/0d/b5/a749539caac9c64213a94a6411ae3d7807839812b879c0eb0c2fb449e57b/cloudbees_openfeature_provider_python-0.1.5.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": null,
    "summary": "CloudBees.com OpenFeature SDK",
    "version": "0.1.5",
    "project_urls": {
        "homepage": "https://github.com/rollout/cloudbees-openfeature-provider-python"
    },
    "split_keywords": [
        "cloudbees",
        " openfeature"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b3c35cfe1db773eb731a42e761766caeecf0b812c13c8ee62e819ddf17df0d26",
                "md5": "663a700f68a4eb73e574142999c35076",
                "sha256": "a79a9b78412a5aa2a32ebb6ba5c830fa2eae33d25260455cf51402052413d050"
            },
            "downloads": -1,
            "filename": "cloudbees_openfeature_provider_python-0.1.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "663a700f68a4eb73e574142999c35076",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 7927,
            "upload_time": "2024-09-26T22:05:15",
            "upload_time_iso_8601": "2024-09-26T22:05:15.852617Z",
            "url": "https://files.pythonhosted.org/packages/b3/c3/5cfe1db773eb731a42e761766caeecf0b812c13c8ee62e819ddf17df0d26/cloudbees_openfeature_provider_python-0.1.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0db5a749539caac9c64213a94a6411ae3d7807839812b879c0eb0c2fb449e57b",
                "md5": "9f3d17aabeb19e8fe9407a19daaceb27",
                "sha256": "4bd9631265ce5dbc8581f0d66794bfc71279757b078873e4b886f190fee64f87"
            },
            "downloads": -1,
            "filename": "cloudbees_openfeature_provider_python-0.1.5.tar.gz",
            "has_sig": false,
            "md5_digest": "9f3d17aabeb19e8fe9407a19daaceb27",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 8355,
            "upload_time": "2024-09-26T22:05:17",
            "upload_time_iso_8601": "2024-09-26T22:05:17.283144Z",
            "url": "https://files.pythonhosted.org/packages/0d/b5/a749539caac9c64213a94a6411ae3d7807839812b879c0eb0c2fb449e57b/cloudbees_openfeature_provider_python-0.1.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-26 22:05:17",
    "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": [
        {
            "name": "openfeature-sdk",
            "specs": [
                [
                    "==",
                    "0.4.1"
                ]
            ]
        },
        {
            "name": "rox",
            "specs": [
                [
                    "==",
                    "5.0.10"
                ]
            ]
        }
    ],
    "lcname": "cloudbees-openfeature-provider-python"
}
        
Elapsed time: 0.51904s