91e75e620b
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Has been cancelled
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Has been cancelled
CD: Docs MCP Server / build (linux/amd64) (push) Has been cancelled
CD: Docs MCP Server / build (linux/arm64) (push) Has been cancelled
CD: Docs MCP Server / merge (push) Has been cancelled
CI: cua-driver distro-compat matrix / Resolve release version (push) Has been cancelled
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Has been cancelled
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Has been cancelled
CI: cua-driver distro-compat matrix / Distro compat summary (push) Has been cancelled
CI: Rust Linux unit / Rust Linux unit and compile (push) Has been cancelled
CI: Rust Windows unit / Rust Windows unit and compile (push) Has been cancelled
CI: Nix Linux Rust source / Nix / compositor build (push) Has been cancelled
CI: Nix Linux Rust source / Nix / driver package (push) Has been cancelled
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Has been cancelled
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
"""cua-sandbox — ephemeral and persistent sandboxed computer environments.
|
|
|
|
Usage::
|
|
|
|
import cua_sandbox as cua
|
|
|
|
# Configure API access
|
|
cua.configure(api_key="sk-...")
|
|
|
|
# Local sandbox
|
|
async with cua.sandbox(local=True) as sb:
|
|
await sb.screenshot()
|
|
|
|
# Localhost (no sandbox, direct host control)
|
|
async with cua.localhost() as host:
|
|
await host.mouse.click(100, 200)
|
|
"""
|
|
|
|
__version__ = "0.1.0"
|
|
|
|
from cua_sandbox._auth import login, whoami
|
|
from cua_sandbox._config import configure
|
|
from cua_sandbox.image import Image
|
|
from cua_sandbox.localhost import Localhost, localhost
|
|
from cua_sandbox.runtime.compat import (
|
|
RuntimeSupport,
|
|
check_local_support,
|
|
skip_if_unsupported,
|
|
)
|
|
from cua_sandbox.sandbox import Sandbox, SandboxInfo, sandbox
|
|
from cua_sandbox.transport.cloud import CloudTransport
|
|
|
|
__all__ = [
|
|
"configure",
|
|
"login",
|
|
"whoami",
|
|
"Image",
|
|
"Sandbox",
|
|
"SandboxInfo",
|
|
"sandbox",
|
|
"Localhost",
|
|
"localhost",
|
|
"CloudTransport",
|
|
"RuntimeSupport",
|
|
"check_local_support",
|
|
"skip_if_unsupported",
|
|
]
|