https://github.com/remirobert/digitalocean
DigitalOcean for python3.4
https://github.com/remirobert/digitalocean
Last synced: about 1 year ago
JSON representation
DigitalOcean for python3.4
- Host: GitHub
- URL: https://github.com/remirobert/digitalocean
- Owner: remirobert
- License: mit
- Created: 2014-05-01T12:43:32.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-01T17:09:30.000Z (about 12 years ago)
- Last Synced: 2025-02-28T17:53:53.474Z (over 1 year ago)
- Language: Python
- Size: 156 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DigitalOcean
============
#####[Digital Ocean](https://www.digitalocean.com/) API for python3.4.
Overview **DigitalOcean** class
===========================
``` python
- def list_droplet(self):
- def list_size(self):
- def list_regions(self):
- def list_images(self):
- def list_domains(self):
- def new_domain(self):
- def get_percentage_event(self):
- def new_droplet(self, name, size_id, image_id, region_id):
```
Overview **Droplet** class
======================
``` Python
- def display_info_droplet(self):
- def reboot(self):
- def power_cycle(self):
- def shutdown(self):
- def power_off(self):
- def power_on(self):
- def reset_root_password(self):
```
Overview **Domain** class
=====================
``` python
- def display_info_domain(self):
- def destroy_domain(self):
```
Sample application, for reboot all droplets:
``` python
import DigitalOcean
do = DigitalOcean("api_key", "client_id")
droplets = do.list_droplet()
for current_droplet in droplets:
current_droplet.reboot()
```