Skip to main content

OpenShift CLI (oc) thin wrapper library for Python3

Project description

This oc library is a thin wrapper around the OpenShift CLI oc.

Usage

` >>> import oc >>> oc.login('https://...openshift.com', 'mytoken') >>> oc.set_project('myproject') >>> oc.exec('mypod', 'curl -I http://localhost:8080') >>> logs = oc.logs('mypod', since='1m') `

Installation

` $ pip install oc `

Documentation

` $ pydoc oc.api `

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oc-0.2.1.tar.gz (6.3 kB view hashes)

Uploaded source

Built Distribution

oc-0.2.1-py3-none-any.whl (6.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page