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.2.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.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for cua_train-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9361a982ce9275748d3f8a7984272d96540093f0bc79ebd833248e410c0d4a7b
MD5 a422c7dfd80f3fe26c43a5926bd4d067
BLAKE2b-256 cbf89b11e27a2279bf0548a8833664d479e0b594d8d2964c66f30b412e421713

See more details on using hashes here.

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

Hashes for cua_train-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1488c97ac1f0a5572527d678316b45fe2a9adc3b505e5d07789dd09a85b6a71a
MD5 efd658b0904feb514b25c9047e002a02
BLAKE2b-256 6ade15329953e45048c707321717c8a21d6e4de249f2ce83607350257eaaebe4

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