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.
from smartdc import DataCenter
sdc = DataCenter(location='us-sw-1', key_id='/test/keys/test_key',
east = sdc.datacenter('us-east-1')
nu = east.create_image()
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.
· (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)