Ganeti RAPI client
Project description
Gentleman is a simple, straightforward Python library for communication with Ganeti clusters using Ganeti’s RAPI.
Usage
Import a client of your choice, and then do some work with it.
>>> from gentleman.sync import RequestsRapiClient
>>> c = RequestsRapiClient("your.ganeti.cluster")
>>> c.start()
>>> print c.version
2
>>> print c.features
['instance-reinstall-reqv1', 'node-evac-res1', 'node-migrate-reqv1',
'instance-create-reqv1']
There’s also a Twisted client. An example with Twisted’s shell:
>>> from gentleman.async import *
>>> c = TwistedRapiClient("your.ganeti.cluster")
>>> c.start()
<Deferred #0>
Deferred #0 called back: None
>>> c.version
2
>>> c.features
['instance-reinstall-reqv1', 'node-evac-res1', 'node-migrate-reqv1',
'instance-create-reqv1']
License
Gentleman is made available under the terms of the GPL, version 2 or (at your discretion) any later version.
Gentleman is based on code from Ganeti, (c) 2010-11 Google Inc., and code from Ganeti Web Manager, (c) 2011-12 Oregon State University.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gentleman-15.5.tar.gz
(12.0 kB
view details)
File details
Details for the file gentleman-15.5.tar.gz.
File metadata
- Download URL: gentleman-15.5.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55cfd50197cf124eaebf759b0d856f8e8b677b326c355f166b77fcc0e7784b0e
|
|
| MD5 |
398cfe95f0dac0632826ba3e2991a359
|
|
| BLAKE2b-256 |
2fad1a2df9caa3ead0d2f86314f789b500b09ad7b6b4edc624dc618c3866fdbf
|