Skip to main content

Digital Ocean API Python Wrapper

Inspired by [dop](https://github.com/ahmontero/dop).

Installation

# pip install dopy

Getting Started

To interact with Digital Ocean, you first need .. a digital ocean account with valid API keys.

Keys can be set either as Env variables, or within the code.

# export DO_CLIENT_ID='client_id'
# export DO_API_KEY='long_api_key'
>>> from dopy.manager import DoManager
>>> do = DoManager('client_id', 'long_api_key')

Methods

The methods of the DoManager are self explanatory; ex.

>>> do.all_active_droplets()
>>> do.show_droplet('12345')
>>> do.destroy_droplet('12345')
>>> do.all_regions()
>>> do.all_images()
>>> do.all_ssh_keys()
>>> do.sizes()
>>> do.all_domains()
>>> do.new_droplet('new_droplet', 66, 1601, 1)

TODO

See github issue list - post if any needed

https://github.com/devo-ps/dopy/issues

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dopy-0.2.4.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file dopy-0.2.4.tar.gz.

File metadata

  • Download URL: dopy-0.2.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dopy-0.2.4.tar.gz
Algorithm Hash digest
SHA256 6c0cb4d775e7b9acdccbcdb5214e69026787d63aa8e709948fd5a8c48d61842a
MD5 017a693cdc2debaefeee69ec5061c1bb
BLAKE2b-256 841c1cae1629a8f91b5aa24d6ede8dc2b76ac403509f466575e5cf0ca2545745

See more details on using hashes here.

Supported by

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