skillfed

python-digitalocean

digitalocean.com API to manage Droplets and Images

python-digitalocean v1.17.0 177.2K downloads/30d#10,223 on PyPI1,282
Copyleft license LGPL v3 Abandoned released

What it is and what it does

python-digitalocean is a Python client library for the DigitalOcean cloud API, allowing developers to create, manage, and monitor Droplets (virtual machines), images, SSH keys, and other cloud resources programmatically. It wraps the DigitalOcean REST API behind Python objects and methods, so you can list droplets, create new ones, resize them, manage backups, and perform power operations without writing raw HTTP requests.

The library depends on requests for HTTP communication and jsonpickle for serialization. However, it is no longer actively maintained—the last release was in October 2021 and the repository shows no commits since August 2023. This means it may not support recent DigitalOcean API changes, and any bugs or security issues discovered will not be patched.

Use it for:

  • Automate Droplet provisioning and teardown in deployment pipelines or infrastructure-as-code workflows.
  • Build monitoring or management dashboards that query Droplet status and metrics via the DigitalOcean API.
  • Manage SSH keys and snapshots programmatically as part of a larger cloud automation system.
  • Write scripts to perform bulk operations like shutting down or resizing multiple Droplets at once.
  • Integrate DigitalOcean resource management into Python applications or CLI tools.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Python bindings to the DigitalOcean API for programmatic management of Droplets, images, SSH keys, and related cloud infrastructure resources.

No—not for new projects. The package is abandoned (last release October 2021, no commits since August 2023) and will not receive updates for DigitalOcean API changes or security issues. If you need DigitalOcean API access, use the official DigitalOcean Python SDK or make direct HTTP calls via requests. Only consider this if you are maintaining legacy code that already depends on it and cannot migrate.

Install

python-digitalocean on PyPI

pip

pip install python-digitalocean

uv

uv add python-digitalocean

poetry

poetry add python-digitalocean

Installing python-digitalocean

Before you install

Low install friction with only two lightweight runtime dependencies (requests and jsonpickle). However, the package is abandoned—last release was 2021-10-02 and last commit 2023-08-09—so expect no fixes for API changes, security issues, or compatibility problems with modern Python versions.

License in practice

Licensed under LGPL v3 (copyleft), which requires that any modifications or derivative works remain under the same license and be made available to users. This is a significant constraint for proprietary software.

Quickstart

import digitalocean
manager = digitalocean.Manager(token="your_api_token")
droplets = manager.get_all_droplets()
print(droplets)

Requires a valid DigitalOcean API token; the package does not validate API compatibility with current DigitalOcean endpoints.

Verify before relying

  • Whether the package's API calls remain compatible with DigitalOcean's current API (last tested 2021-10-02).
  • Python version compatibility beyond what the fact sheet specifies (requires_python is unspecified).
  • Whether DigitalOcean has deprecated or changed endpoints used by this library since its last release.

Package facts

License LGPL v3 (copyleft)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 2 — requests, jsonpickle
Maintenance abandoned — 1,777 days since the last release
Last repo commit
First released
Downloads 177,189/month — #10,223 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: python_digitalocean-1.17.0-py3-none-any.whl

Tags

digitalocean api clientdroplet management pythoncloud infrastructure automationdigitalocean sdkmanage vps programmaticallydigitalocean python wrappercloud provisioning api
abandonedcloud-apidigitalocean

More Internet packages