Skip to main content

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


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.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cua_train-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file cua_train-0.1.1.tar.gz.

File metadata

  • Download URL: cua_train-0.1.1.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

Hashes for cua_train-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9ed82a422513ef713460aa257d218855e8bb6fc9419679f95555770a07f6637a
MD5 25baf6cac0bd78acd56c17aa2e1e5a84
BLAKE2b-256 3b7f5236d210cf4f34a5af0d787ac028066ba56d483b3051d8a1bb4e2b33f2b7

See more details on using hashes here.

File details

Details for the file cua_train-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cua_train-0.1.1-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

Hashes for cua_train-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2b5319e799449bebf27b22e0c6a6bd6a72aee57797a08114a19a99e1d313a4b3
MD5 20229f57366a423a0b4814144a2c5925
BLAKE2b-256 935b986335e5f6d453f2f19bf38da17575dc940e98a907260a1439abac37c9c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page