Skip to main content

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"})

Metadata

Release files for cua-train 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cua-train 0.1.2
File Size Uploaded
cua_train-0.1.2.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cua-train 0.1.2
File Interpreter ABI Platform
cua_train-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / cua_train-0.1.2.tar.gz

Download URL cua_train-0.1.2.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9361a982ce9275748d3f8a7984272d96540093f0bc79ebd833248e410c0d4a7b
BLAKE2b-256 checksum
How to use checksums
cbf89b11e27a2279bf0548a8833664d479e0b594d8d2964c66f30b412e421713
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / cua_train-0.1.2-py3-none-any.whl

Download URL cua_train-0.1.2-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1488c97ac1f0a5572527d678316b45fe2a9adc3b505e5d07789dd09a85b6a71a
BLAKE2b-256 checksum
How to use checksums
6ade15329953e45048c707321717c8a21d6e4de249f2ce83607350257eaaebe4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page