Skip to main content

Python wrapper for Digital Ocean API V2

Project description

Python wrapper for Digital Ocean API V2.

http://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Paper_Masala_Dosa.jpg/193px-Paper_Masala_Dosa.jpg

Installation

pip install dosa

Usage

import dosa

API_KEY = 'Your API Key'
dosa.DEBUG = True  # enables debug logs

client = dosa.Client(api_key=API_KEY)

# Droplets
client.droplets.list()
status, result = client.droplets.create(name='terminator', region='nyc2',\
    size='512mb', image='ubuntu-14-04-x32')
new_droplet_id = result['id']
client.droplets.delete(new_droplet_id)

# Images
client.images.list()

Credits

Created while working on Scroll.in’s project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dosa-0.2.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file dosa-0.2.tar.gz.

File metadata

  • Download URL: dosa-0.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dosa-0.2.tar.gz
Algorithm Hash digest
SHA256 737eb74b71287a8e9343b53817ab5a6d765e14939249f503606873fa2f36c996
MD5 edf60482e3eb1461e3a23c4b2fa3a5e2
BLAKE2b-256 767dcf12e94e39f68771df4c1c2619c9549441b3bfb691a1cf513114e8d72c35

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page