Skip to main content

Client for the Gridspot computing service.

Project description

===========
PyGridspot
===========

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='<YOUR 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
[Instance inst_<INSTANCE_ID> = Running]
[69.4.239.72:64333] put: /tmp/test.sh -> /tmp/test.sh
[69.4.239.72:64333] sudo: chmod +x /tmp/test.sh && /tmp/test.sh && exit
[69.4.239.72:64333] out: Ign http://security.ubuntu.com oneiric-security InRelease
[69.4.239.72:64333] out: Ign http://us.archive.ubuntu.com oneiric InRelease
[69.4.239.72:64333] out: Ign http://us.archive.ubuntu.com oneiric-updates InRelease

The 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.

Dependencies
===========

Fabric >= 1.4.3
httplib2 >= 0.7.4

Contributing
===========

Fork, submit pull request.

Changelog
========

v0.0.2, 7/16/2012 -- Brought code up to pep8 standards, added support for stop_instance.

v0.0.1, 7/12/2012 -- Fixed missing readme in sdist package. Initial release.

v0.0.1dev, 7/12/2012 -- Initial upload.

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

PyGridspot-0.0.2.tar.gz (8.6 kB view details)

Uploaded Source

File details

Details for the file PyGridspot-0.0.2.tar.gz.

File metadata

  • Download URL: PyGridspot-0.0.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyGridspot-0.0.2.tar.gz
Algorithm Hash digest
SHA256 5edcfdcfb4a0b7f463177e658981f2db1ea05b2470ace16cb1dd51a7892d6950
MD5 a00b121b5505e266607724335bbc37e1
BLAKE2b-256 e8527d14550e88bb4c10e6f530a8b551bfc5427cb13b1f6f5bcdab02256696cd

See more details on using hashes here.

Supported by

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