Browser automation SDK for AI agents — Playwright-as-a-Service with accessibility trees
Project description
roveapi
Python SDK for the Rove browser automation API — Playwright-as-a-Service with accessibility trees for 77% fewer tokens.
Install
pip install roveapi
Quickstart
from roveapi import BrowserClient
client = BrowserClient(api_key="rvp_live_...")
# One-shot screenshot
screenshot = client.screenshot(url="https://example.com")
print(screenshot["url"]) # signed S3 URL
# Session with context manager (auto-close)
with client.session() as session:
session.navigate("https://example.com")
tree = session.get_a11y_tree()
print(tree["result"]["tree"]) # ~26K tokens vs ~114K for screenshot
session.click(label="Get Started")
session.fill(selector="#email", value="user@example.com")
Error Handling
from roveapi import BrowserClient, InsufficientCreditsError, RateLimitError
try:
with client.session() as session:
session.navigate("https://example.com")
except InsufficientCreditsError:
print("Top up credits at roveapi.com")
except RateLimitError as e:
print(f"Retry after {e.retry_after} seconds")
API
BrowserClient(api_key, base_url?, retries?, retry_delay?)
client.session(**options)→Session(context manager)client.screenshot(url, **options)→ dictclient.extract(url, schema, **options)→ dictclient.usage()→ dict
Session
All 12 browser actions: navigate(), get_a11y_tree(), click(), fill(), select(), scroll(), wait_for(), screenshot(), get_text(), get_attribute(), evaluate(), close().
Auto-retry on 503 with exponential backoff. No retry on 402 or 410.
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 roveapi-1.0.0.tar.gz.
File metadata
- Download URL: roveapi-1.0.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c1e6aabd1e18114c0973d0e53be4f5b3e75992f2b73279a9fad7814e723d99a
|
|
| MD5 |
51b039b826a64dc1742f79097f86a041
|
|
| BLAKE2b-256 |
4a87c14370c4d2f2bf2d4ae751ae794fb62c80c533619d1217eb7615307abcac
|
Provenance
The following attestation bundles were made for roveapi-1.0.0.tar.gz:
Publisher:
publish-pypi.yml on noncelogic/rove
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
roveapi-1.0.0.tar.gz -
Subject digest:
7c1e6aabd1e18114c0973d0e53be4f5b3e75992f2b73279a9fad7814e723d99a - Sigstore transparency entry: 1276523611
- Sigstore integration time:
-
Permalink:
noncelogic/rove@d61af21930b9db924c3315d42f5b8de229301c80 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/noncelogic
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d61af21930b9db924c3315d42f5b8de229301c80 -
Trigger Event:
push
-
Statement type:
File details
Details for the file roveapi-1.0.0-py3-none-any.whl.
File metadata
- Download URL: roveapi-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5432c91aa3de8ccf30b69bb165a6af4d75228cabf24a88992c0334dff6469566
|
|
| MD5 |
208b99c558dab7e094a7a7ca661d9945
|
|
| BLAKE2b-256 |
9f6a54495e9c9c580f6990edb57cf0493fef1251092f078b246da33fd39a9530
|
Provenance
The following attestation bundles were made for roveapi-1.0.0-py3-none-any.whl:
Publisher:
publish-pypi.yml on noncelogic/rove
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
roveapi-1.0.0-py3-none-any.whl -
Subject digest:
5432c91aa3de8ccf30b69bb165a6af4d75228cabf24a88992c0334dff6469566 - Sigstore transparency entry: 1276523630
- Sigstore integration time:
-
Permalink:
noncelogic/rove@d61af21930b9db924c3315d42f5b8de229301c80 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/noncelogic
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@d61af21930b9db924c3315d42f5b8de229301c80 -
Trigger Event:
push
-
Statement type: