Skip to main content

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) → dict
  • client.extract(url, schema, **options) → dict
  • client.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


Download files

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

Source Distribution

roveapi-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

roveapi-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for roveapi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7c1e6aabd1e18114c0973d0e53be4f5b3e75992f2b73279a9fad7814e723d99a
MD5 51b039b826a64dc1742f79097f86a041
BLAKE2b-256 4a87c14370c4d2f2bf2d4ae751ae794fb62c80c533619d1217eb7615307abcac

See more details on using hashes here.

Provenance

The following attestation bundles were made for roveapi-1.0.0.tar.gz:

Publisher: publish-pypi.yml on noncelogic/rove

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for roveapi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5432c91aa3de8ccf30b69bb165a6af4d75228cabf24a88992c0334dff6469566
MD5 208b99c558dab7e094a7a7ca661d9945
BLAKE2b-256 9f6a54495e9c9c580f6990edb57cf0493fef1251092f078b246da33fd39a9530

See more details on using hashes here.

Provenance

The following attestation bundles were made for roveapi-1.0.0-py3-none-any.whl:

Publisher: publish-pypi.yml on noncelogic/rove

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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