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
.
>>> 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')
$ pip install oc
$ pydoc oc.api