openshift-cluster-management-python-wrapper


Nameopenshift-cluster-management-python-wrapper JSON
Version 2.0.12 PyPI version JSON
download
home_pageNone
SummaryWrapper around https://github.com/openshift/openshift-cluster-management-python-client
upload_time2025-01-27 06:54:27
maintainerNone
docs_urlNone
authorNone
requires_python~=3.9
licenseNone
keywords ocm openshift
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # openshift-cluster-management-python-wrapper
Wrapper for [openshift-cluster-management-python client](https://github.com/RedHatQE/openshift-cluster-management-python-client)

## Release new version
### requirements:
* Export GitHub token
```bash
export GITHUB_TOKEN=<your_github_token>
```
* [release-it](https://github.com/release-it/release-it)

Run the following once (execute outside repository dir, for example `~/`):
```bash
sudo npm install --global release-it
npm install --save-dev @release-it/bumper
```
### usage:
* Create a release, run from the relevant branch.  
To create a 1.0 release, run:
```bash
git checkout v1.0
git pull
release-it # Follow the instructions
```

## Installation
From source:
```bash
git clone https://github.com/RedHatQE/openshift-cluster-management-python-client.git
cd openshift-cluster-management-python-client
python setup.py install --user
```

## Examples
### Client
```python
from ocm_python_wrapper.ocm_client import OCMPythonClient
ocm_client = OCMPythonClient(
    token=<ocm api token>>,
    endpoint=<endpoint url>,
    api_host=<production or stage>,
    discard_unknown_keys=True,
)
return ocm_client.client
```
### Cluster
```python
from ocm_python_wrapper.cluster import Cluster
cluster = Cluster(client=client, name=<cluster name>)
cluster_ocp_version = cluster.instance.version.raw_id
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "openshift-cluster-management-python-wrapper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.9",
    "maintainer_email": null,
    "keywords": "OCM, Openshift",
    "author": null,
    "author_email": "Meni Yakove <myakove@gmail.com>, Ruth Netser <rnetser@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/40/bb/8bdf08a3c28e40bbcbdf912f2535ef426bd59e0939b47f7787195778c529/openshift_cluster_management_python_wrapper-2.0.12.tar.gz",
    "platform": null,
    "description": "# openshift-cluster-management-python-wrapper\nWrapper for [openshift-cluster-management-python client](https://github.com/RedHatQE/openshift-cluster-management-python-client)\n\n## Release new version\n### requirements:\n* Export GitHub token\n```bash\nexport GITHUB_TOKEN=<your_github_token>\n```\n* [release-it](https://github.com/release-it/release-it)\n\nRun the following once (execute outside repository dir, for example `~/`):\n```bash\nsudo npm install --global release-it\nnpm install --save-dev @release-it/bumper\n```\n### usage:\n* Create a release, run from the relevant branch.  \nTo create a 1.0 release, run:\n```bash\ngit checkout v1.0\ngit pull\nrelease-it # Follow the instructions\n```\n\n## Installation\nFrom source:\n```bash\ngit clone https://github.com/RedHatQE/openshift-cluster-management-python-client.git\ncd openshift-cluster-management-python-client\npython setup.py install --user\n```\n\n## Examples\n### Client\n```python\nfrom ocm_python_wrapper.ocm_client import OCMPythonClient\nocm_client = OCMPythonClient(\n    token=<ocm api token>>,\n    endpoint=<endpoint url>,\n    api_host=<production or stage>,\n    discard_unknown_keys=True,\n)\nreturn ocm_client.client\n```\n### Cluster\n```python\nfrom ocm_python_wrapper.cluster import Cluster\ncluster = Cluster(client=client, name=<cluster name>)\ncluster_ocp_version = cluster.instance.version.raw_id\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Wrapper around https://github.com/openshift/openshift-cluster-management-python-client",
    "version": "2.0.12",
    "project_urls": {
        "Bug Tracker": "https://github.com/RedHatQE/openshift-cluster-management-python-wrapper/issues",
        "Documentation": "https://github.com/RedHatQE/openshift-cluster-management-python-wrapper/blob/main/README.md",
        "Download": "https://pypi.org/project/openshift-cluster-management-python-wrapper/",
        "Homepage": "https://github.com/RedHatQE/openshift-cluster-management-python-wrapper"
    },
    "split_keywords": [
        "ocm",
        " openshift"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "40bb8bdf08a3c28e40bbcbdf912f2535ef426bd59e0939b47f7787195778c529",
                "md5": "3d6bc29bb04036867370eef3461f41cc",
                "sha256": "e437b927cab4bd1fa0f9cb98c89a9f62c8fe7760f00529b92b92ffaba1ce52a6"
            },
            "downloads": -1,
            "filename": "openshift_cluster_management_python_wrapper-2.0.12.tar.gz",
            "has_sig": false,
            "md5_digest": "3d6bc29bb04036867370eef3461f41cc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.9",
            "size": 15718,
            "upload_time": "2025-01-27T06:54:27",
            "upload_time_iso_8601": "2025-01-27T06:54:27.379350Z",
            "url": "https://files.pythonhosted.org/packages/40/bb/8bdf08a3c28e40bbcbdf912f2535ef426bd59e0939b47f7787195778c529/openshift_cluster_management_python_wrapper-2.0.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-27 06:54:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "RedHatQE",
    "github_project": "openshift-cluster-management-python-wrapper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "openshift-cluster-management-python-wrapper"
}
        
Elapsed time: 0.81875s