PyGridspot

Client for the Gridspot computing service
Download

PyGridspot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Amir Elaguizy
  • Publisher web site:
  • https://github.com/aelaguiz/

PyGridspot Tags


PyGridspot Description

PyGridspot is a simple Python client for the Gridspot API (www.gridspot.com). It is intended to make managing gridspot vms easier. Typical usage looks like:import os from pygridspot import * g = Gridspot(api_key='',\ cache='file',\ cache_file='cache.dat') il = g.get_instances() for instance in il.new: g.bootstrap(os.path.expanduser('~/.ssh/id_rsa'), instance, '/tmp/test.sh')The above code when executed results in: aelaguiz$ python test.py put: /tmp/test.sh -> /tmp/test.sh sudo: chmod +x /tmp/test.sh && /tmp/test.sh && exit out: Ign http://security.ubuntu.com oneiric-security InRelease out: Ign http://us.archive.ubuntu.com oneiric InRelease out: Ign http://us.archive.ubuntu.com oneiric-updates InReleaseThe key improvement over a simple REST client is the support for automatic bootstrapping of the new VMs using the Fabric SSH API to push a setup script and run it on any new VMs.Product's homepage


PyGridspot Related Software