Skip to main content

pyagentbrowser

PyPI Release Check License

pyagentbrowser embeds the native Rust agent-browser engine in Python. It gives agents accessibility snapshots, stable element refs, and before-and-after evidence for browser actions.

uv add pyagentbrowser
from agentbrowser import Browser

browser = Browser()
browser.open("https://example.com")
page = browser.observe()

print(page.text)

Browser starts lazily and stays active until browser.close() is called. Keep the same object across notebook cells or interactive Python commands. browser.session.status() reports browser and restore lifecycle state. close() returns the terminal save result. Screenshots returned by browser.capture.screenshot() render inline in notebook frontends.

Snapshot binds accessibility refs to the page state that produced them. Ref actions return an ActionResult containing the original snapshot, the resulting snapshot, and their diff.

Use browser.find for live CSS, XPath, and semantic queries. Namespaces such as browser.capture, browser.tabs, browser.network, and browser.cdp expose focused browser capabilities. Every action in the pinned native engine remains available through browser.native.

Documentation

Installation options

The distribution is named pyagentbrowser. Python imports it as agentbrowser. Wheels support Python 3.11 through 3.14 on macOS, Linux, and x86-64 Windows.

uv add "pyagentbrowser[images]"  # Pillow-backed screenshot helpers
uv add "pyagentbrowser[cdp]"     # CDP frames, targets, and evaluation

Local launches find an installed Chromium browser or prepare Chrome for Testing through the native installer.

Development

make install
make check

make test-integration exercises the Python, PyO3, adapter, and CDP seams against a real browser. make check-release builds and installs both distribution artifacts.

License

Apache-2.0. See LICENSE and NOTICE.

Download files

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

Source Distribution

pyagentbrowser-0.35.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

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

pyagentbrowser-0.35.1-cp311-abi3-win_amd64.whl (9.3 MB view details)

Uploaded CPython 3.11+Windows x86-64

pyagentbrowser-0.35.1-cp311-abi3-manylinux_2_28_x86_64.whl (9.8 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ x86-64

pyagentbrowser-0.35.1-cp311-abi3-manylinux_2_28_aarch64.whl (9.5 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ ARM64

pyagentbrowser-0.35.1-cp311-abi3-macosx_11_0_arm64.whl (8.9 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

pyagentbrowser-0.35.1-cp311-abi3-macosx_10_12_x86_64.whl (7.8 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

Details for the file pyagentbrowser-0.35.1.tar.gz.

File metadata

  • Download URL: pyagentbrowser-0.35.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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

Hashes for pyagentbrowser-0.35.1.tar.gz
Algorithm Hash digest
SHA256 12c7e441af79ca38a4462d0990625c7fc9018028d364990ec0c0dd9c10ec8227
MD5 3a3e95ab40202ab5257dd6e11f175893
BLAKE2b-256 0c4d1c15038c72ea4527ec5e03132ab7b2780683a8c05eff866ec1dd485ce828

See more details on using hashes here.

File details

Details for the file pyagentbrowser-0.35.1-cp311-abi3-win_amd64.whl.

File metadata

  • Download URL: pyagentbrowser-0.35.1-cp311-abi3-win_amd64.whl
  • Upload date:
  • Size: 9.3 MB
  • Tags: CPython 3.11+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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

Hashes for pyagentbrowser-0.35.1-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b823fae851d9ce9722d50940ef39454d83fc77cecfa6d6285ab4611ab4f0ad77
MD5 6d68b0728d9c9cf5de761e1fbef1ca1a
BLAKE2b-256 7de1d0c19471eae78f1b2e8f557d8b811881e304032a9486b065d50b611db42b

See more details on using hashes here.

File details

Details for the file pyagentbrowser-0.35.1-cp311-abi3-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: pyagentbrowser-0.35.1-cp311-abi3-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: CPython 3.11+, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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

Hashes for pyagentbrowser-0.35.1-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 31be6e7fa1ddeaa801e0a208ecd590e34c02e8310d9f0ce576bf6ed7f3387dca
MD5 39133e2fdc78137226ea813d4fb9573e
BLAKE2b-256 c793a186e41ca75f0f3a2fea489c88716dde765fd41b4b6de18031c0ba375c9f

See more details on using hashes here.

File details

Details for the file pyagentbrowser-0.35.1-cp311-abi3-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: pyagentbrowser-0.35.1-cp311-abi3-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 9.5 MB
  • Tags: CPython 3.11+, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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

Hashes for pyagentbrowser-0.35.1-cp311-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3a9019d495ec7a84c72fb4f5e29f58624db44a98419e3c94a6790d1d743ea176
MD5 baa7cd8f93b012c4669023099665ea27
BLAKE2b-256 552eb9b0e2211f0deb7e022ccd13d87f12770c58a632a8090e82730f12d40dbe

See more details on using hashes here.

File details

Details for the file pyagentbrowser-0.35.1-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pyagentbrowser-0.35.1-cp311-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 8.9 MB
  • Tags: CPython 3.11+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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

Hashes for pyagentbrowser-0.35.1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aea3aa22ceb3baabd2c4edfeac51dd549dfa2bd6ea4a2e5ef85a069035ff6b89
MD5 2bed35cb5dc401f840e39846fd547bde
BLAKE2b-256 b18b5887ff12d49cea215564c8190ebb6e4668ca05a44dcd0fdaeb4855494b8f

See more details on using hashes here.

File details

Details for the file pyagentbrowser-0.35.1-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: pyagentbrowser-0.35.1-cp311-abi3-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 7.8 MB
  • Tags: CPython 3.11+, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","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

Hashes for pyagentbrowser-0.35.1-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 98eb5a435ca53b0ad12a0defe299ff135bc3dc9f45a83bc5de935ee1117c46d6
MD5 e4d9a8c3020df9a96c237bf69e8c01da
BLAKE2b-256 ef73b98ab72851ff7e1cc8f94b225120d2220b3179cb115657b5edab4b83fcfa

See more details on using hashes here.

Release history Release notifications | RSS feed

0.37.0

6 files

0.36.0.2

6 files

0.36.0.1

6 files

0.36.0

6 files

This release

0.35.1 This release

6 files

0.35.0

6 files

0.34.0

6 files

0.33.1

6 files

0.33.0

6 files

0.32.3

6 files

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