/doboto

BOTO like interface for DigitalOcean

Primary LanguagePython

doboto

BOTO like interface for DigitalOcean

Usage

from doboto.DO import DO

do = DO(token="secret")

ssh_keys = do.ssh_key.list()
droplet = do.droplet.create({
    "name": "example.com",
    "region": "nyc3",
    "size": "512mb",
    "image": "ubuntu-14-04-x64",
    "ssh_keys": [ssh_key["id"] for ssh_key in ssh_keys]
)

do.droplet.destroy(id=droplet['id'])