Skip to main content

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.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

doctl-0.2.0-py2.py3-none-any.whl (7.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file doctl-0.2.0.tar.gz.

File metadata

  • Download URL: doctl-0.2.0.tar.gz
  • Upload date:
  • Size: 8.3 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

Hashes for doctl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 983cd03e9b2a42485b2254d3bff6d7e29b408216412f3f774ddc47a4d87f8c4d
MD5 73f79a5083aa06527ea5484b6e98838f
BLAKE2b-256 9b2d40d6668e6fbfda8a9dbac221d155580ba8e27abc3c7ff67eac36664ca109

See more details on using hashes here.

File details

Details for the file doctl-0.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: doctl-0.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.2 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

Hashes for doctl-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b1a9c03f7485f74412d6965a9e9c3430da05efa26273abe600275bde5ec2ff9a
MD5 eb8fc5c8f37e55514844395010812314
BLAKE2b-256 35c93ed1501be5d68f45c8a5e738a9ec5d1709326403f32d8f9501d572a11769

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page