Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    PyGridspot 0.0.2

    Download button

    No screenshots available
    Downloads: 73  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Amir Elaguizy | More programs
    BSD License / FREE
    July 17th, 2012, 19:34 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    PyGridspot description

    Client for the Gridspot computing service

    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
            [Instance inst_ = 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.


    Product's homepage

    Requirements:

    · Python
    · Fabric
    · httplib2

    What's New in This Release: [ read full changelog ]

    · Brought code up to pep8 standards, added support for stop_instance.

      


    TAGS:

    Gridspot API | Python library | Python | Gridspot | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM