Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A module to manage Digital Ocean API

Project description


This is a module to manage Digital Ocean API v2

You can manage:

  • Account info
  • Domains (Create, get, delete)
  • Domain records (Create, Get record ID, Delete)
  • TODO: other endpoints available from DO

API Reference from Digital Ocean


Get info from account

import clientdoapi as cdo
import json

client = cdoapi.ClientDOApi("tokenfromDigitalOcean")

    info = client.get_account_info()
    #or get the object as a dictionary:
    info_dict = info.to_json()
    #so you can dump it to json
    json_obj = json.dumps(info_dict)
except Exception as identifier:

Create Domain

     #Returns a DomainDO object with ne info created
     new_domain = client.create_domain("", "")
     print(f"name: {}")
     print(f"name: {new_domain.ttl}")

 except Exception as e:

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 clientdoapi, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size clientdoapi-0.0.5-py3-none-any.whl (17.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size clientdoapi-0.0.5.tar.gz (4.8 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