Skip to main content

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

Metadata

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)

Source distribution for openshift-cluster-management-python-wrapper 2.0.21
File Size Uploaded Provenance Actions
openshift_cluster_management_python_wrapper-2.0.21.tar.gz 15.7 kB Without provenance Details for openshift_cluster_management_python_wrapper-2.0.21.tar.gz

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

Security for openshift-cluster-management-python-wrapper 2.0.21

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.21 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page