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

peaqe/oc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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