No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
python_shovel
LICENSE
README.md
setup.py

README.md

shovel-api-python-client

Requirements.

Python 2.7 and later.

Setuptools

You can install the bindings via Setuptools.

python setup.py install

Or you can install from Github via pip:

pip install git+https://github.com/keedya/shovel-api-python-client.git

Or you can install it from Pypi using pip install (https://pypi.python.org/pypi/python-shovel)

pip install python-shovel

To use the bindings, import the pacakge:

import python_shovel

Description

API Client Library for Shovel(RackHD/OpenStack Coordinator)

Example

from python_shovel import Configuration
from python_shovel import ApiClient
from python_shovel import GETApi as get_api

def get_config():
    config = Configuration()
    config.host = 'http://localhost:9005/api/1.1'
    config.verify_ssl = False
    config.api_client = ApiClient(host=config.host)
    config.debug = False
    get_api().configget()
    print config.api_client.last_response.data