Skip to main content
===========
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.

Release files for PyGridspot 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyGridspot 0.0.2
File Size Uploaded
PyGridspot-0.0.2.tar.gz 8.6 kB Details

Release files / PyGridspot-0.0.2.tar.gz

Download URL PyGridspot-0.0.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5edcfdcfb4a0b7f463177e658981f2db1ea05b2470ace16cb1dd51a7892d6950
BLAKE2b-256 checksum
How to use checksums
e8527d14550e88bb4c10e6f530a8b551bfc5427cb13b1f6f5bcdab02256696cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page