8000 GitHub - do-community/python-doctl: A Python wrapper for the Digital Ocean CLI utility — doctl.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

do-community/python-doctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-doctl

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

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 Namesp 6AB1 aces

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

✨🍰✨

0