Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    py-smartdc 0.1.11

    Download button

    No screenshots available
    Downloads: 114  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Adam T. Lindsay | More programs
    MIT/X Consortium Lic... / FREE
    May 3rd, 2012, 18:38 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    py-smartdc description

    Joyent SmartDataCenter CloudAPI connector using http-signature authentication via Requests

    Connect with Joyent's SmartDataCenter CloudAPI via Python, using secure http-signature signed requests.

    py-smartdc is a third-party effort.

    This module currently supports:

    - Secure connections (via py-http-signature)
    - Key management
    - Browsing and access of datacenters, datasets (OS distributions/VM bundles), and packages (machine sizes and resources)
    - Machine listing, search, creation, management (start/stop/reboot/resize/delete), snapshotting, metadata, and tags

    It attempts to provide Pythonic objects (for Data Centers, Machines and Snapshots) and convenience methods only when appropriate, and otherwise deals with string identifiers or dicts as lightweight objects.

    Usage

    from smartdc import DataCenter

    sdc = DataCenter(location='us-sw-1', key_id='/test/keys/test_key',
     secret='~/.ssh/id_rsa')

    sdc.keys()

    sdc.datasets()

    east = sdc.datacenter('us-east-1')

    east.default_package()

    nu = east.create_image()

    nu.poll_while('provisioning')

    nu.state

    nu.stop()

    nu.poll_until('stopped')

    nu.delete()


    Why?

    A colleague and I wanted something Pythonic to fit into our preferred toolchain, and the easiest approach was to build it myself. Requests made some aspects stupidly easy, which is why I created the dependency for the first version.


    Product's homepage

    Requirements:

    · Python
    · requests
    · py-http-signature
    · pycrypto
    · (We assume that json is present because requests now requires py2.6 and up.)

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

    · Minor update to the README quickstart
    · Machines are hashable based on their UUIDs
    · Pre-programmed Telefónica locations are based on FQDNs
    · KNOWN ISSUE: DataCenter equality not guaranteed with Telefónica servers (due to how they are identified by Telefónica)

      


    TAGS:

    CloudAPI connector | Python library | Joyent SmartDataCenter | Python | Joyent | SmartDataCenter

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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