Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 582 Bytes

File metadata and controls

42 lines (27 loc) · 582 Bytes

openshift.py

Client library for Openshift REST API.

This client library only cover the basic right now.

Examples :

Create with basic auth :

from openshift import Openshift

client = Openshift(email="", password="")

Get an authorization token :

client.add_authorization()
print client.token

Create client with token :

client = Openshift(token="....")

Get user profile :

print client.get_user()

Add a ssh key

client.add_sshkey(name="KeyName", content="EZAGA...DD")