endlessm/flocker-rest-client

Name: flocker-rest-client

Owner: endlessm

Description: Flocker REST API Client in pure Python3 with no external dependencies

Created: 2016-08-22 14:18:24.0

Updated: 2016-08-22 14:18:25.0

Pushed: 2016-12-23 22:41:43.0

Homepage:

Size: 5

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

flocker-rest-client

Flexible Flocker REST API Client in pure Python3 with no external dependencies. The whole script runs from CLI and dynamically handles parameter parsing so that it can easily be modified and extended

Examples
Dynamic help

Function:

_method
create_volume(self, name, size_in_gb, primary_id, profile = None):

tes a volume by attaching it to the specified node of the given size.
ile may be provided to specify IOPS.

turns into:

RT_DIR=. ./flocker_api.py -h
e: flocker_api.py [-h]
...
create_volume       Creates a volume by attaching it to the specified node
                    of the given size. Profile may be provided to specify
                    IOPS. . See "create_volume -help" for more options

and

RT_DIR=. ./flocker_api.py create_volume
e: flocker_api.py create_volume [-h] [--profile PROFILE]
                                name size_in_gb primary_id
ker_api.py create_volume: error: the following arguments are required: name, size_in_gb, primary_id
License

LGPLv2

Maintainers

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.