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

About

OpenShift CLI (oc) thin wrapper for Python

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

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

About

OpenShift CLI (oc) thin wrapper for Python

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages