Skip to main content

A Python wrapper for the Digital Ocean CLI utility — doctl.

Project description


A Python wrapper for the excellent doctl command-line utility, from Digital Ocean.


>>> import doctl

>>> for droplet in doctl.compute.droplet.list():
...     print(droplet['name'])

>>> for key in doctl.compute.ssh_key.list():
...     print(key['name'])
Blink (iPad)

All methods return Python data structures, includinging timezone–aware Datetime objects.


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


$ 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.

Files for doctl, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size doctl-0.2.3-py2.py3-none-any.whl (6.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size doctl-0.2.3.tar.gz (7.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page