Skip to main content

Python library for managing Digital Ocean account

Project description

A library of tools for managing your DigitalOcean account built on top of a Python wrapper for the DigitalOcean API v2

DigitalOcean is known for being developer friendly, I wanted to make it even more so. Here’s a short example to do a test deployment of a Flask app from your github repo (see github for details on how to setup with the right environment variables, DIGITALOCEAN_API_KEY and GITHUB_TOKEN)

import poseidon as P
con = P.connect()
ssh_key_id = con.keys.list()[0]['id']
droplet = con.droplets.create(<domain>, 'sfo1', '512mb',
                              'ubuntu-14-04-x64', ssh_keys=[ssh_key_id])
records =<domain>, droplet.ip_address)
records.create('A', data=droplet.ip_address)
ssh = droplet.connect()
ssh.apt('git python-pip')
ssh.git(username=<username>, repo=<repo_name>)

Project details

Release history Release notifications

History Node


This version
History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
poseidon-0.3.0.tar.gz (8.5 kB) Copy SHA256 hash SHA256 Source None Aug 9, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page