Skip to main content

Install cudoctl

To use this client you will need to
  1. Create an API key
  2. Download and install cudoctl command line tool from here
  3. Run cudoctl init and enter your API key and select a project/billing account.
Once cudoctl is set up the python client will use the default API key configured by cudoctl. If you would like to change project in the python client you will need to run cudoctl init again.

Install via pip

To install the python client via pip run:

Example code

For more information see the GitHub Repository Full examples can be found in the examples directory. Below are some simplified examples:

Create a virtual machine

List current virtual machines

Terminate a virtual machine

Other services

The API has multiple services (other than virtual_machines)
  • apikeys
  • disks
  • networks
  • object_storage
  • permissions
  • ssh_keys
  • search
  • user
  • virtual_machines
Other services can be used like this:
For more information see the /docs directory of the GitHub Repository