This is official Python SDK for Kowabunga API.
Project | Release Badge |
---|---|
Kowabunga | |
Kowabunga Python SDK |
kowabunga-python
can be installed like any other Python library through pip install
:
$ pip install kowabunga
Check out the list of released versions.
To use kowabunga-python
, you’ll need to import the kowabunga
package:
import kowabunga
Creating an API client and listing all Kompute instances can be done by:
import kowabunga
from kowabunga.rest import ApiException
from pprint import pprint
cfg = kowabunga.Configuration(
host = "https://your_kowabunga_kahuna_server/api/v1"
)
cfg.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
with kowabunga.ApiClient(cfg) as client:
kompute = kowabunga.KomputeApi(client)
try:
for k in kompute.list_komputes():
pprint(kompute.read_kompute(k))
except ApiException as e:
print("Exception when calling KomputeApi->list_komputes: %s\n" % e)
where uri is https://your_kowabunga_kahuna_server and token is the associated API key.
Refer to API documentation
Licensed under Apache License, Version 2.0, see LICENSE
.