Skip to main content

Cua Bench UI

Lightweight webUI window controller for Cua bench environments using pywebview

Usage

from bench_ui import launch_window, get_element_rect, execute_javascript

# Launch a window with inline HTML content
pid = launch_window(html="<html><body><h1>Hello</h1></body></html>")

# Get element rect in screen space
rect = get_element_rect(pid, "h1", space="screen")
print(rect)

# Execute arbitrary JavaScript
text = execute_javascript(pid, "document.querySelector('h1')?.textContent")
print(text)

Installation

pip install cua-bench-ui

Metadata

Release files for cua-bench-ui 0.7.1

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-bench-ui 0.7.1
File Size Uploaded
cua_bench_ui-0.7.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cua-bench-ui 0.7.1
File Interpreter ABI Platform
cua_bench_ui-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / cua_bench_ui-0.7.1.tar.gz

Download URL cua_bench_ui-0.7.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2e8faad408f5e0c4c44d5842313ff2c8ad6985803e3016b01efa28f00505221f
BLAKE2b-256 checksum
How to use checksums
6d9602519849578ef2293108cb4ce2105bf51dfab8cc928532b6759c4f128c52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / cua_bench_ui-0.7.1-py3-none-any.whl

Download URL cua_bench_ui-0.7.1-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8efe592451ab3bec3e239a25a7fdbfb57f8a72a7b0d351f30f3d829947ce43fa
BLAKE2b-256 checksum
How to use checksums
f23979c3e6f851ca2b35bce0f17ac546012bde3ffa73b6e787881177c12c9ff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

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