A client for cudocompute.com
Project description
Cudo 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
from cudo_compute import cudo_api
api = cudo_api.virtual_machines()
vms = api.list_vms(cudo_api.project_id())
More examples of various api calls can be found in examples
.
Advanced Users / Development
The code is generated by swagger codegen cli.
Most code is generated in github actions see .github/workflows the generated code is put into a /src/cudo_compute directory The code gets modified and the helpers get copied in from /helpers.
./codegen.sh
generates docs directory with source code and documentation.
If you wish to customise how the API key or project is selected see the code in the helpers directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cudo_compute-0.3.0.tar.gz
.
File metadata
- Download URL: cudo_compute-0.3.0.tar.gz
- Upload date:
- Size: 423.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ff3a01bf07890df1fcf26f6cdbdb67af53e73b0e213c5f07b7abdde0fac7282 |
|
MD5 | a08b099b8b3a5dadb430814fcce3307b |
|
BLAKE2b-256 | 437e585c207bd632597e6c56da4e4c8d3d3a7a5287dec104197a9a3458136bbd |
File details
Details for the file cudo_compute-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: cudo_compute-0.3.0-py3-none-any.whl
- Upload date:
- Size: 357.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4143eb72c38deef1e515090538c5ceb67165a285201f437edfbcc60abfb0d439 |
|
MD5 | 82642575a84ab60378652f5b313a1215 |
|
BLAKE2b-256 | a69bb5598ae6097a49ed20b344d1825942c08e3dc931b492de9d819f933c41a6 |