Platform9 Qbert client
Project description
Platform9 Qbert client
This implementation of the Qbert client is an amalgam of various implementations in Platform9's internal tooling. At the moment the goal is to get something out as quickly as possible.
How to install
pip install qbertclient
Usage
from qbertclient import qbert
qb = qbert.Qbert(token, 'https://<fqdn>/qbert/v3/<project_id>)
The client also exposes a simple Keystone client which allows users to get a Keystone token:
from qbertclient import qbert
from qbertclient import keystone
du_fqdn = "endpoint.platform9.net"
username = "username@platform9.net"
password = "hunter2"
project_name = "service"
ks = keystone.Keystone(du_fqdn, username, password, project_name)
token = ks.get_token()
project_id = ks.get_project_id(project_name)
qb = qbert.Qbert(token, "https://{}/qbert/v3/{}".format(du_fqdn, project_id))
print(qb.list_clusters())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qbertclient-0.0.14.tar.gz
(5.6 kB
view details)
File details
Details for the file qbertclient-0.0.14.tar.gz
.
File metadata
- Download URL: qbertclient-0.0.14.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.6.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e41f8a5bf754623399370d17021d7cec093ff13fa75a9f4c6cc25ac18df3cdfc |
|
MD5 | 4bb7a7082ff58d458bc072594960a2c4 |
|
BLAKE2b-256 | c1c8da83e9a1286a74d7e039bcabb3f3e889d4df47b9d1876ee44fb2af9ad271 |