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 kowabungaCheck out the list of released versions.
To use kowabunga-python, you’ll need to import the kowabunga package:
importkowabungaCreating an API client and listing all Kompute instances can be done by:
importkowabungafromkowabunga.restimportApiExceptionfrompprintimportpprintcfg=kowabunga.Configuration(
host="https://your_kowabunga_kahuna_server/api/v1"
)
cfg.api_key['ApiKeyAuth'] =os.environ["API_KEY"]
withkowabunga.ApiClient(cfg) asclient:
kompute=kowabunga.KomputeApi(client)
try:
forkinkompute.list_komputes():
pprint(kompute.read_kompute(k))
exceptApiExceptionase:
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.
