openshift-cluster-management-python-wrapper
Wrapper for openshift-cluster-management-python client
Release new version
requirements:
- Export GitHub token
export GITHUB_TOKEN=<your_github_token>
Run the following once (execute outside repository dir, for example ~/):
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:
git checkout v1.0
git pull
release-it # Follow the instructions
Installation
From source:
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
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
from ocm_python_wrapper.cluster import Cluster
cluster = Cluster(client=client, name=<cluster name>)
cluster_ocp_version = cluster.instance.version.raw_id
Release files for openshift-cluster-management-python-wrapper 2.0.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openshift_cluster_management_python_wrapper-2.0.21.tar.gz | 15.7 kB | Details |
Release files / openshift_cluster_management_python_wrapper-2.0.21.tar.gz
| Download URL | openshift_cluster_management_python_wrapper-2.0.21.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
336af30214843c403503a127fc86fa5ef1670c87b82dfb7bf5cf307b1a9814ca
|
|
BLAKE2b-256 checksum How to use checksums |
7bb517bed29389b11298b23b3406bbf31f095d8441a3f3300b705e091327d4c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|