PyDo
pydo is the official Python client library that allows
Python developers to interact with and manage their DigitalOcean
resources through a Python abstraction layer on top of the raw
DigitalOcean API HTTP Interface.
A top priority of this project is to ensure the client abides by the API
contract. Therefore, the client itself wraps a generated client based
on the DigitalOcean OpenAPI Specification to support all of DigitalOcean's HTTP APIs.
Getting Started With the Client
Prerequisites
Python version: >= 3.7.2
Installation
To install from pip:
pip install git+https:/github.com/digitalocean/pydo.git
or, if repo is cloned locally:
pip install ///pydo
To install from source:
make install
pydo Quickstart
A quick guide to getting started with the client.
pydo must be initialized with pydo.Client(). A DigitalOcean API Token is required. The token can be passed explicitly to pydo.Client(), as such:
import os
from pydo import Client
client = Client(token=os.geten
|