llama.com.do package

Provision or destroy a bunch of digitalocean servers. User will be asked for confirmation before creation or destruction of droplets proceeds.

llama.com.do.create_droplet(name, image='gwhen.com-post-er13')

Return a Droplet object with the given name from the given snapshot. Use the returned Droplet object to actually create a corresponding droplet on DigitalOcean. All SSH keys in the account will be applied.

llama.com.do.create_droplets(names, image='gwhen.com-post-er13')

Create droplets with the given names from the given snapshot. Asks for user confirmation before creating.

llama.com.do.destroy_droplets(names, tags=())

Destroy droplets matching the given names. If names is an empty list, destroy all droplets with at least one of the tags contained in tags. Asks for user confirmation before destroying.

llama.com.do.droplet_header(columns)

Return a header row with column names.

llama.com.do.droplet_row_fmt(columns)

Get a format string for a given list of columns. Those columns will be inserted into the format string in order.

llama.com.do.print_droplets(droplets, columns, header_rows=True)

Print out a list of droplets in a nice format.