A Python wrapper for the Digital Ocean CLI utility — doctl.
Project description
python-doctl
A Python wrapper for the excellent doctl command-line utility, from Digital Ocean.
Usage
>>> import doctl
>>> for droplet in doctl.compute.droplet.list():
... print(droplet['name'])
pypi.kennethreitz.org
code.kennethreitz.org
build.kennethreitz.org
…
>>> for key in doctl.compute.ssh_key.list():
... print(key['name'])
Blink (iPad)
thoth
macbook
Features
- Automatically downloads
doctl
, if unavailable for your system (at runtime). - All methods return Python data structures, includinging timezone–aware Datetime objects.
Notes
Use of the DIGITALOCEAN_ACCESS_TOKEN
environment variable is recommended.
Available Namespaces
The entire API surface of doctl is covered by this library, so the following namespaces are available for your use and enjoyment:
compute.account
compute.action
compute.certificate
compute.domain
compute.domain_records
compute.droplet
compute.firewall
compute.floating_ip
compute.image
compute.image_action
compute.load_balancer
compute.plugin
compute.region_list
compute.size_list
compute.snapshot
compute.ssh_key
compute.tag
compute.volume
compute.volume_action
Installation
$ pipenv install doctl
✨🍰✨
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
doctl-0.2.1.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for doctl-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f3c3b40c58ec9ed05653d1045c3cd9daad94baa9c95b28fa82853c31f044243 |
|
MD5 | f930b68a57c1e68cf921b2eb5d2ac1f0 |
|
BLAKE2b-256 | b28d1776ed1575bd5a8babc976a36ec112d2a48ea60dba8696f2ea97d2b78757 |