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()
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for python-digitalocean-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1264535ea09cbd2234dd4969f6a91f9a9f5916d37cde366d51c60c4bbcd7b9d1 |
|
MD5 | 3e0d2f002ae341f64e8a3a0be019b433 |
|
BLAKE2b-256 | 609c1fc6563eabba603bdb481228191bcc201afed16d4b7baa6f595bcec30501 |