Python SDK for Meshbrow — Managed Browser Fleet for AI Agents
Project description
Meshbrow Python SDK
The official Python SDK for Meshbrow — Managed Browser Fleet for AI Agents.
Installation
pip install meshbrow
Quick Start
from meshbrow import Meshbrow
client = Meshbrow(api_key="your-api-key")
# Launch a stealth browser session
session = client.create_session(
stealth="max",
proxy_type="residential",
proxy_country="US",
)
# Navigate and interact
client.navigate(session.id, "https://example.com")
content = client.extract(session.id)
screenshot = client.screenshot(session.id)
# Clean up
client.destroy_session(session.id)
client.close()
Context Manager
with Meshbrow(api_key="your-api-key") as client:
session = client.create_session()
client.navigate(session.id, "https://example.com")
client.destroy_session(session.id)
Fleet Operations
fleet = client.create_fleet(
count=10,
proxy_type="residential",
proxy_country="US",
)
for session in fleet.sessions:
client.navigate(session.id, "https://example.com")
client.destroy_fleet(fleet.id)
API Reference
Meshbrow(api_key, base_url="https://api.meshbrow.dev")
| Method | Description |
|---|---|
create_session(...) |
Launch a stealth browser session |
get_session(id) |
Get session details |
list_sessions() |
List all active sessions |
destroy_session(id) |
Destroy a session |
navigate(id, url) |
Navigate to URL |
screenshot(id) |
Take a screenshot |
click(id, selector) |
Click an element |
type_text(id, selector, text) |
Type into an input |
extract(id) |
Extract page text |
execute(id, script) |
Run JavaScript |
create_fleet(count) |
Launch multiple sessions |
destroy_fleet(id) |
Destroy a fleet |
License
MIT
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 meshbrow-0.1.0.tar.gz.
File metadata
- Download URL: meshbrow-0.1.0.tar.gz
- Upload date:
- Size: 7.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 |
22047675fbf88d65a53b94ed816a21c310d74b448786971ac60e21bd83cbd474
|
|
| MD5 |
6c5f29ac5773fb1bfb0768666eafd154
|
|
| BLAKE2b-256 |
10b27293ebd3dca8f76f8f3baf378de80dee4b484e10a0d155e16256f7d948ed
|
Provenance
The following attestation bundles were made for meshbrow-0.1.0.tar.gz:
Publisher:
publish.yml on meshbrow-dev/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meshbrow-0.1.0.tar.gz -
Subject digest:
22047675fbf88d65a53b94ed816a21c310d74b448786971ac60e21bd83cbd474 - Sigstore transparency entry: 1818596860
- Sigstore integration time:
-
Permalink:
meshbrow-dev/sdk-python@e0d9778c6777f03c4d94f1e662015112818de611 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/meshbrow-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e0d9778c6777f03c4d94f1e662015112818de611 -
Trigger Event:
push
-
Statement type:
File details
Details for the file meshbrow-0.1.0-py3-none-any.whl.
File metadata
- Download URL: meshbrow-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 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 |
b8a0e08d8d7f54888a189533278f3461ad8b50e7b6d124752d8ec7d3f2dd30d1
|
|
| MD5 |
669d5dfe83c8a4d47fd716f1ebdd3621
|
|
| BLAKE2b-256 |
3460dfa2908e5f96077894a6b9d329d4c378ec289b4a827782152ef61a53ce16
|
Provenance
The following attestation bundles were made for meshbrow-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on meshbrow-dev/sdk-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meshbrow-0.1.0-py3-none-any.whl -
Subject digest:
b8a0e08d8d7f54888a189533278f3461ad8b50e7b6d124752d8ec7d3f2dd30d1 - Sigstore transparency entry: 1818597025
- Sigstore integration time:
-
Permalink:
meshbrow-dev/sdk-python@e0d9778c6777f03c4d94f1e662015112818de611 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/meshbrow-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e0d9778c6777f03c4d94f1e662015112818de611 -
Trigger Event:
push
-
Statement type: