py-smartdcJoyent SmartDataCenter CloudAPI connector using http-signature authentication via Requests | |
Download |
py-smartdc Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Adam T. Lindsay
- Publisher web site:
- https://github.com/atl/
py-smartdc Tags
py-smartdc Description
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 tagsIt 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.Usagefrom smartdc import DataCentersdc = 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.statenu.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
py-smartdc Related Software