Python SDK for evaluating in ScaleWoB: Scalable world-of-bit that revolutionizes the evaluation of Computer-Use Agents.
Project description
ScaleWoB Python SDK
Python SDK for evaluating in ScaleWoB: Scalable world-of-bit that revolutionizes the evaluation of Computer-Use Agents.
🔥 Use this SDK to plug your computer-use agent to our upcoming benchmark!
Installation
pip install scalewob
Discovering Tasks
ScaleWoB uses a two-step process to discover tasks:
- Fetch available environments
- Load each environment to get its tasks
from scalewob import ScaleWoBAutomation, fetch_environments
# Step 1: Fetch available environments
envs = fetch_environments()
print(f"Found {len(envs)} environments")
# Filter by difficulty
basic_envs = fetch_environments(difficulty="Basic")
# Filter by platform and tags
mobile_envs = fetch_environments(
platform="Mobile Interfaces",
tags=["Time Selection"]
)
# Step 2: For each environment, load it and work with its tasks
for env in basic_envs:
with ScaleWoBAutomation(env_id=env['id']) as auto: # the browser will show up
# Access tasks via the tasks property
print(f"Environment {env['name']} has {len(auto.tasks)} tasks")
# Work with each task
for idx, task in enumerate(auto.tasks):
auto.start_evaluation()
# ... perform actions based on task['description'] ...
# The task's params field (if present) is a JSON schema
# You need to provide actual parameter values that match this schema
if task.get('params'):
# Example: provide actual values matching the schema
# Validation is automatic when you call finish_evaluation
actual_params = {
"destination": "New York",
"check_in": "2024-01-15"
}
result = auto.finish_evaluation(
task_id=task['task_id'],
params=actual_params # Auto-validated against task['params']
)
else:
result = auto.finish_evaluation(task_id=task['task_id'])
Development
Setup
# Clone the repo and enter the directory first
uv sync
# Install pre-commit hooks
uv pre-commit install
Code Quality
# Format code
uv run poe format
# Run checks (format, lint, type checking)
uv run poe check
# Fix linting issues
uv run poe fix
License
MIT License - see LICENSE file for details.
Links
- Homepage: https://github.com/ScaleWoB/ScaleWoB.github.io
- Documentation: https://github.com/ScaleWoB/ScaleWoB#readme
- Bug Tracker: https://github.com/ScaleWoB/ScaleWoB/issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 scalewob-0.9.0.tar.gz.
File metadata
- Download URL: scalewob-0.9.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c1dfefe9bd3632798cee0616b79505594f1402d375e504f88f799d72b6303b1
|
|
| MD5 |
68510f51fdcc9d4c0bfd078ece2f465f
|
|
| BLAKE2b-256 |
4d0e6ef8c4b990a6d49d03af91772da865ec78c852a12c3868bd0081378f8a33
|
File details
Details for the file scalewob-0.9.0-py3-none-any.whl.
File metadata
- Download URL: scalewob-0.9.0-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51477792fb83400c620223e40cec4d58df0abf8bc18612a1584042d0955d7d55
|
|
| MD5 |
665f6012f32a5afeb5195c1cf89e21c6
|
|
| BLAKE2b-256 |
8d8c663cb3e0c0b7d39f505b2800ceac495b5dbf486d4699596f4a0c47b8b847
|