Cua Cloud Python client โ control and data plane for Cua Cloud desktop VM pools
Project Links
Meta
Author: TryCua
Requires Python: >=3.10
Classifiers
Development Status
- 3 - Alpha
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Programming Language
- Python :: 3
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
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"})
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
httpx
(>=0.27.0)