Lightweight webUI window controller for CUA bench using pywebview
Project description
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
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_bench_ui-0.4.0.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cua_bench_ui-0.4.0.tar.gz.
File metadata
- Download URL: cua_bench_ui-0.4.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c7b8cede3d5901b69cebdbba8c257bd6936dd69ea33fe244eb618da597a713f
|
|
| MD5 |
536ef7fa5b90b118a9b33ef620cad108
|
|
| BLAKE2b-256 |
dc26bf18151d0f98b0005ff3cc0e8301ea23b4950b4f59996f97b39f461f9ab6
|
File details
Details for the file cua_bench_ui-0.4.0-py3-none-any.whl.
File metadata
- Download URL: cua_bench_ui-0.4.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e910fd449c9b7324964d6b638115a2b64f436193c4df73d374d99157a0a6253
|
|
| MD5 |
c1425a415cab15f7f4766afdbd8af190
|
|
| BLAKE2b-256 |
3a69082417eaadb96edc5cb77368ff83ff370c82e38892e7f4ab69b9ee42a36e
|