Skip to main content

pyagentbrowser

Native browser automation with typed Python APIs and before-and-after evidence.

Documentation · Get started · Examples · PyPI · Issues

PyPI version Python 3.11 through 3.14 Release Check Apache-2.0 license

Control browsers and iframe applications from Python with the native agent-browser engine. Bind page and frame handles, act on inspected elements, capture model-ready images, and retain before-and-after evidence.

Alpha: The public API and native integration can change between minor releases. Pin a version for production automation.

Get started

python -m pip install pyagentbrowser

Requires Python 3.11 through 3.14. Local browsers run headlessly by default. The first launch finds Chrome or Chromium, or downloads Chrome for Testing when needed.

from agentbrowser import Browser

with Browser.launch() as browser:
    browser.page.set_content(
        "<button onclick=\"this.textContent='Done'\">Run</button>"
    )
    snapshot = browser.page.observe()
    result = snapshot.one(role="button", name="Run").click()

    print(result.after.one(role="button").name)
    print(result.diff.changed)
Done
True

page.observe() captures a Snapshot of the page's accessible elements. Selecting a button returns a Ref. Clicking it returns an ActionResult with before, after, and diff. Use page.find for live element queries and page.frames for embedded applications.

Browser workflows

  • Inspect and act. Navigate pages, fill forms, read documents, and capture screenshots and PDFs through typed namespaces.
  • Keep document scope. Bind an exact page or frame so observation, evaluation, waits, scrolling, capture, and ref actions share one target.
  • Deliver evidence. Read screenshot bytes and MIME metadata, and inspect structured snapshots and action results.
  • Manage sessions. Launch a browser or attach to an existing one. Work with tabs, cookies, saved state, and explicit cleanup.
  • Control actions. Configure domain restrictions and confirmation policy for operations through the native engine.
  • Replay recorded tasks. Record a task once as a saved flow, then run its requests again with new parameters.
  • Compose in Python. Use synchronous or asynchronous controllers, agent skills, and the complete engine protocol through browser.native.

Documentation

Get started · Concepts · Action evidence · Code-mode integration · Safety · API reference · Troubleshooting

The documentation site covers browser workflows, optional packages, supported platforms, and integrations. See examples for Python scripts and Contributing for development setup and checks.

License

pyagentbrowser is licensed under the Apache License 2.0. See NOTICE for bundled software attribution.

Metadata

Release files for pyagentbrowser 0.43.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyagentbrowser 0.43.0.1
File Size Uploaded Provenance Actions
pyagentbrowser-0.43.0.1.tar.gz 1.6 MB Without provenance Details for pyagentbrowser-0.43.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyagentbrowser 0.43.0.1
File Actions
pyagentbrowser-0.43.0.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for pyagentbrowser-0.43.0.1-cp311-abi3-win_amd64.whl
pyagentbrowser-0.43.0.1-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details for pyagentbrowser-0.43.0.1-cp311-abi3-manylinux_2_28_x86_64.whl
pyagentbrowser-0.43.0.1-cp311-abi3-manylinux_2_28_aarch64.whl CPython 3.11 abi3 Linux glibc 2.28+ ARM64 Details for pyagentbrowser-0.43.0.1-cp311-abi3-manylinux_2_28_aarch64.whl
pyagentbrowser-0.43.0.1-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for pyagentbrowser-0.43.0.1-cp311-abi3-macosx_11_0_arm64.whl
pyagentbrowser-0.43.0.1-cp311-abi3-macosx_10_12_x86_64.whl CPython 3.11 abi3 macOS 10.12+ x86-64 Details for pyagentbrowser-0.43.0.1-cp311-abi3-macosx_10_12_x86_64.whl

Total release size: 59.9 MB

Release files / pyagentbrowser-0.43.0.1.tar.gz

Download URL pyagentbrowser-0.43.0.1.tar.gz
Size 1.6 MB
Tags Source
SHA-256 checksum
How to use checksums
6a32b6aede2cac6b1f9de68a0f7aa1102091a71cdebd1240f26fa7cbca5ec32a
BLAKE2b-256 checksum
How to use checksums
9fa2ec28693bf1b5e039a6d932bff40e34eafe2392062928fde199981ed8f2a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.43.0.1-cp311-abi3-win_amd64.whl

Download URL pyagentbrowser-0.43.0.1-cp311-abi3-win_amd64.whl
Size 11.5 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
67bf952b5ee4f36065eff995877a5fe2dd7aff097dc3440d895f97a963b4ae1f
BLAKE2b-256 checksum
How to use checksums
39aa02552408a3698a288782b5b225af4c2b523fe294afaba0830d9226d0f693
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.43.0.1-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL pyagentbrowser-0.43.0.1-cp311-abi3-manylinux_2_28_x86_64.whl
Size 12.2 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
6c881ddf7230c89fa3347a6979cc8fc6a5056b51ce03f3b55ac1a59c4b3f8678
BLAKE2b-256 checksum
How to use checksums
840a5ff46dabd1d1443d2f52599520f134b956b91a760adc6e7b438b0c157069
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.43.0.1-cp311-abi3-manylinux_2_28_aarch64.whl

Download URL pyagentbrowser-0.43.0.1-cp311-abi3-manylinux_2_28_aarch64.whl
Size 11.8 MB
Tags CPython 3.11 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
1a6eca370f6bb822101afd78f981fc024fe5bec7cc8fef249ec85d687e0b4776
BLAKE2b-256 checksum
How to use checksums
ab54d22b9a106423ccc9d4e2a91e268fc7ea0f5d4e5a629679a8d1daf7585269
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.43.0.1-cp311-abi3-macosx_11_0_arm64.whl

Download URL pyagentbrowser-0.43.0.1-cp311-abi3-macosx_11_0_arm64.whl
Size 11.1 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6601e5ea9b4edd3b58bbee7ca5017a5c6991c69d50ea34e4e280b892febe001a
BLAKE2b-256 checksum
How to use checksums
6ce3e3a503e2373b40b62974817edd35b4ddec12f220a04454c7f81ed50a8977
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyagentbrowser-0.43.0.1-cp311-abi3-macosx_10_12_x86_64.whl

Download URL pyagentbrowser-0.43.0.1-cp311-abi3-macosx_10_12_x86_64.whl
Size 11.7 MB
Tags CPython 3.11 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
27db65ee0fcbbba7473de4812a9474bab28c2290e41b43e17933f2d006b8ad2f
BLAKE2b-256 checksum
How to use checksums
425b8dae36f39ffcca33ffade9252764b86161abac41a613ba86afc14157ca6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pyagentbrowser 0.43.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.43.0.1 This release

6 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page