A client for cudocompute.com
Low maintenance activity. Last release 23 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install cudo-computeCudo Compute
To use this client install cudoctl and run ./cudoctl init follow the steps to enter your API key and choose your project.
Then when you call cudo_api in python it will grab your API key from the yaml file created by cudoctl.
pip install cudo-compute
To use the api key and project set in cudoctl command line tool:
vm_api = cudo_api.virtual_machines()
vms = vm_api.list_vms(cudo_api.project_id())
If you don't want to use the automatic key you can supply your own, but you must also supply the project id manually too.
from cudo_compute import cudo_api
api_key = "s8dhap8dha8a98a9e88ewe90w9e"
project = "my-project"
vm_api = cudo_api.virtual_machines(api_key)
vms = vm_api.list_vms(project_id)
More examples of various api calls can be found in examples.
Documentation for API Endpoints
How to create each API, methods are below:
from cudo_compute import cudo_api
key_api = cudo_api.api_keys()
billing_api = cudo_api.billing()
dc_api = cudo_api.data_centers()
disk_api = cudo_api.disks()
mt_api = cudo_api.machine_types()
net_api = cudo_api.networks()
store_api = cudo_api.object_storage()
perm_api = cudo_api.permissions
projects_api = cudo_api.projects()
ssh_api = cudo_api.ssh_keys()
search_api = cudo_api.search()
vm_api = cudo_api.virtual_machines()
def_api = cudo_api.default()
All URIs are relative to https://rest.compute.cudo.org
| Class | Method | HTTP request | Description |
|---|---|---|---|
| APIKeysApi | delete_api_key | DELETE /v1/api-keys/{name} | Delete |
| APIKeysApi | generate_api_key | POST /v1/api-keys | Generate |
| APIKeysApi |