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.1.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.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file roveapi-1.1.0.tar.gz.

File metadata

  • Download URL: roveapi-1.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 66fb796057f3a1f44e7c791b6b35d6feca64dbcce7394232d8d93b505006fa6c
MD5 9108778139fd0040e34f5829f3fd8bde
BLAKE2b-256 01d4881f5e3a4286430141f4670ce50080ada8b44755d4c546f83e987c334189

See more details on using hashes here.

Provenance

The following attestation bundles were made for roveapi-1.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: roveapi-1.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0fab372c2a6d61e7213baa2e188b53ab77edc93fa7434f0b5af756b45dd0fd72
MD5 83888a911bd888beeb2e4a2718a9f35f
BLAKE2b-256 8f2199fc2be61bbfbc4158543a1796beff8094d1bcc40672d2de0aa85b8d3827

See more details on using hashes here.

Provenance

The following attestation bundles were made for roveapi-1.1.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