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 `
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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
oc-0.2.1-py3-none-any.whl
(6.8 kB
view details)
File details
Details for the file oc-0.2.1.tar.gz.
File metadata
- Download URL: oc-0.2.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6336b9ddc86f40d193d671c9e6dfef0c6d500df24d2395ced14121bd45d147db
|
|
| MD5 |
7d5d41b34044581f29edc7e04c888227
|
|
| BLAKE2b-256 |
490a6c91e6e3feb4c54cfb078e252cf68bf77e1707fe2a9b6f6f060ba460e1b7
|
File details
Details for the file oc-0.2.1-py3-none-any.whl.
File metadata
- Download URL: oc-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0932123155d9800b6d095660a89175a2ac4e39d69dcd0e17f49ea5342b08ba2d
|
|
| MD5 |
df566ba242ee68d78542e5161fced3a2
|
|
| BLAKE2b-256 |
1f9a412dc89d16c10efe5bf88bbe0c925346f3e3456aa30f815e0b171f02c8f3
|