Skip to main content

Overlay image package for quicksand

Project description

Quicksand CUA Sandbox

An overlay image package for quicksand that adds browser automation via Playwright and Chromium with a VNC-accessible virtual display. Built on top of quicksand-agent.

Installation

quicksand install quicksand-cua

Usage

Simple (recommended)

import asyncio
from quicksand_cua import CuaSandbox

async def main():
    async with CuaSandbox() as sb:
        # Xvfb, x11vnc, and Chromium start automatically via systemd
        result = await sb.execute("python3 -c 'from playwright.sync_api import sync_playwright; print(\"OK\")'")
        print(result.stdout)

asyncio.run(main())

With custom config

from quicksand_core import Sandbox

async with Sandbox(image="quicksand-cua", memory="4G", cpus=4) as sb:
    result = await sb.execute("chromium --version")

What's Included

Everything from quicksand-agent (Python 3.12, uv, requests, pyyaml, ddgs, markitdown), plus:

  • Xvfb virtual framebuffer (display :0, 1280x1024x24)
  • x11vnc VNC server on port 5901
  • Playwright browser automation library
  • Chromium browser (installed via Playwright)
  • noVNC web client on port 6080
  • Fonts (Liberation, Noto Color Emoji)

All services (Xvfb, x11vnc, Chromium, noVNC) are enabled as systemd units and start automatically on boot.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

quicksand_cua-0.3.2-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file quicksand_cua-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for quicksand_cua-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 daf1ec22be40e483711db240ffcb6750b973b02972b15917ffbbf58a7c6a35e2
MD5 7e2b0a25c18306bfbfea9615e7a798de
BLAKE2b-256 f567ba49f6cc3107b41771bd53f0aa9f8ecefb4ca413da07c037bbee0eed9eb5

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