Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Latest commit

 

History

History
31 lines (23 loc) · 599 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 599 Bytes

OpenShift CLI (oc) thin wrapper for Python3

This project has been archived, for a native and full feature library, visit https://pypi.org/project/openshift-client/

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