Skip to main content

DOP: Digital Ocean API Python Wrapper

DOP is a MIT licensed Python wrapper for Digital Ocean’s API.

Features

Full support for all methods listed here except (they have weird behaviour):
  • reset_root_password

  • restore_droplet

  • destroy_image

Installation

To install dop, simply:

$ pip install dop

Example

It is pretty easy to use:

from dop.client import Client

client = Client('client_id', 'api_key')

# Print regions.
regions = client.regions()
for region in regions:
    print(region.to_json())

# Create a 512Mb droplet (Debian 7.0 x32) in the Amsterdam region.
client.create_droplet(name='test', size_id=66, image_id=303619, region_id=2)

Contribute

Pull requests and improvements are welcome.

Bitdeli badge
Version 0.1.6
Version 0.1.5
  • Updated API

Version 0.1.4
  • Added virtio parameter to create_droplet method

  • Minor fixes in all_ssh_keys method

  • Readme region example now uses to_json() method

Version 0.1.3
Version 0.1.2
Version 0.1.1
Version 0.1.0
  • Initial release

Release files for dop 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dop 0.1.6
File Size Uploaded
dop-0.1.6.tar.gz 5.5 kB Details

Release files / dop-0.1.6.tar.gz

Download URL dop-0.1.6.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c84afbb1468fa98816cbb3ad9d2e58199c07b83c47a7a41be46523af7fd1a9e7
BLAKE2b-256 checksum
How to use checksums
c2976ab4d00d5bd53d27e1ad0bb8b41fea869bfc9c05da9fdb6d40facc25448d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page