Skip to main content

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


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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page