Skip to main content

digitalocean.com API to manage Droplets and Images

Project description

# python-digitalocean

python-digitalocean is a python package that provide easy acces to digitalocean.com APIs to manage droplets, images and more.

## How to install

You can install python-digitalocean using **pip**

pip install -U python-digitalocean

or via sources:

python setup.py install

## Features
python-digitalocean support all the features provided via digitalocean.com APIs, such as:

* Get user's Droplets
* Get user's Images ( Snapshot and Backups )
* Get pubblic Images
* Create and Remove a Droplet
* Resize a Droplet
* shutdown, restart and boot a Droplet
* power off, power on and "power cycle" a Droplet
* Perform Snapshot
* Enable/Disable automatic Backups
* Restore root password of a Droplet


## Example: Shutdown all droplets

This example shows how to shutdown all the droplets active:

import digitalocean
manager = digitalocean.Manager(client_id="ABC", api_key="ABC")
my_droplets = manager.get_all_droplets()
for droplet in my_droplets:
droplet.shutdown()

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

python-digitalocean-0.2.4.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file python-digitalocean-0.2.4.tar.gz.

File metadata

File hashes

Hashes for python-digitalocean-0.2.4.tar.gz
Algorithm Hash digest
SHA256 34d1e853f5c98762e1e5130eeb1676ca70ed015dbb15eac307696cf2971fc7a1
MD5 6f602d977c596d60bef5904ea405f57f
BLAKE2b-256 e34dbfed1a42d20626082aa7aaf278a1cfd82cd9114a075d6cfd6c907537993a

See more details on using hashes here.

Supported by

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