Skip to content

kowabunga-cloud/kowabunga-python

Repository files navigation

Kowabunga

Official Kowabunga SDK for Python

This is official Python SDK for Kowabunga API.

License: Apache License, Version 2.0 PyPi page link -- version python Build Status

Current Releases

Project Release Badge
Kowabunga Kowabunga Release
Kowabunga Python SDK Kowabunga Python SDK Release

Installation

kowabunga-python can be installed like any other Python library through pip install:

$ pip install kowabunga

Check out the list of released versions.

Configuration

To use kowabunga-python, you’ll need to import the kowabunga package:

import kowabunga

Usage

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.

Documentation for API

Refer to API documentation

License

Licensed under Apache License, Version 2.0, see LICENSE.

About

Official Python SDK for Kowabunga

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published