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
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.accountcompute.actioncompute.certificatecompute.domaincompute.domain_recordscompute.dropletcompute.firewallcompute.floating_ipcompute.imagecompute.image_actioncompute.load_balancercompute.plugincompute.region_listcompute.size_listcompute.snapshotcompute.ssh_keycompute.tagcompute.volumecompute.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file doctl-0.2.3.tar.gz.
File metadata
- Download URL: doctl-0.2.3.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5c108dadd1ace103c645d46b33a9e94ec749c3b7831679c76547d9a062ef50d
|
|
| MD5 |
207882a8469fdec50e041732b8a1532c
|
|
| BLAKE2b-256 |
5332747df793926553bc30821c3eabd4d61201ef2598c05c4a42e43ff36a6589
|
File details
Details for the file doctl-0.2.3-py2.py3-none-any.whl.
File metadata
- Download URL: doctl-0.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4451a6153da39b128374d8ab3b3a9a2150a830b085886f57a22c8b818cbdddc
|
|
| MD5 |
136c6c0a11f5388ea861f42857614b35
|
|
| BLAKE2b-256 |
2453962cad2ee7562a37bc972e7ff7b35af9224e5fb7579b982b94b1665a4e1f
|