Skip to main content

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


Download files

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

Source Distribution

meshbrow-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

meshbrow-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for meshbrow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 22047675fbf88d65a53b94ed816a21c310d74b448786971ac60e21bd83cbd474
MD5 6c5f29ac5773fb1bfb0768666eafd154
BLAKE2b-256 10b27293ebd3dca8f76f8f3baf378de80dee4b484e10a0d155e16256f7d948ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for meshbrow-0.1.0.tar.gz:

Publisher: publish.yml on meshbrow-dev/sdk-python

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

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

Hashes for meshbrow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8a0e08d8d7f54888a189533278f3461ad8b50e7b6d124752d8ec7d3f2dd30d1
MD5 669d5dfe83c8a4d47fd716f1ebdd3621
BLAKE2b-256 3460dfa2908e5f96077894a6b9d329d4c378ec289b4a827782152ef61a53ce16

See more details on using hashes here.

Provenance

The following attestation bundles were made for meshbrow-0.1.0-py3-none-any.whl:

Publisher: publish.yml on meshbrow-dev/sdk-python

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