Cua Cloud Python client — control and data plane for Cua Cloud desktop VM pools
Project description
cua-train
Python client for the Cua Cloud API.
pip install cua-train
from cua_train import TrainClient
client = TrainClient.from_key(
client_id="ukey-...", # from your Cua Cloud account
client_secret="...",
)
# Control plane — claim a VM
http = client.get_async_httpx_client()
await http.post("/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/my-pool/osgymsandboxclaims", json={...})
# Data plane — exec in the VM
await http.post("/api/svc/my-pool/my-sandbox-server/execute", json={"command": "echo hi"})
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
cua_train-0.1.2.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cua_train-0.1.2.tar.gz.
File metadata
- Download URL: cua_train-0.1.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9361a982ce9275748d3f8a7984272d96540093f0bc79ebd833248e410c0d4a7b
|
|
| MD5 |
a422c7dfd80f3fe26c43a5926bd4d067
|
|
| BLAKE2b-256 |
cbf89b11e27a2279bf0548a8833664d479e0b594d8d2964c66f30b412e421713
|
File details
Details for the file cua_train-0.1.2-py3-none-any.whl.
File metadata
- Download URL: cua_train-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1488c97ac1f0a5572527d678316b45fe2a9adc3b505e5d07789dd09a85b6a71a
|
|
| MD5 |
efd658b0904feb514b25c9047e002a02
|
|
| BLAKE2b-256 |
6ade15329953e45048c707321717c8a21d6e4de249f2ce83607350257eaaebe4
|