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
File details
Details for the file python-digitalocean-0.2.4.tar.gz.
File metadata
- Download URL: python-digitalocean-0.2.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34d1e853f5c98762e1e5130eeb1676ca70ed015dbb15eac307696cf2971fc7a1
|
|
| MD5 |
6f602d977c596d60bef5904ea405f57f
|
|
| BLAKE2b-256 |
e34dbfed1a42d20626082aa7aaf278a1cfd82cd9114a075d6cfd6c907537993a
|