Skip to main content

swiftbrowse

The AI browser for browser automation and end-to-end testing. A native engine (Rust, Chromium over the DevTools Protocol) with one contract across a test runner, an MCP server for AI agents, and this SDK. Standard library only.

pip install swiftbrowse
npx playwright install chromium chromium-headless-shell   # a Chromium for SwiftBrowse to drive
swiftbrowse doctor                                       # what this machine can run

Tests in code

# pytest or unittest
from swiftbrowse import launch

def test_signs_in():
    with launch() as browser, browser.new_session() as page:
        page.navigate("http://localhost:3000/login")
        page.fill("Email", "ada@example.com")
        page.click({"by": "role", "role": "button", "name": "Sign in"}, expect={"type": "url_contains", "value": "/dashboard"})
        page.expect({"type": "text_visible", "text": "Welcome, Ada"})

Every engine operation is a method with its documented signature (navigate, click, fill, check, hover, upload_file, route, switch_tab, switch_frame, save_storage_state, …): required arguments positionally, the rest by keyword. A failed action or expect raises SwiftBrowseError with the full result attached.

The CLI

swiftbrowse test runs JSON test files with parallel workers, retries, traces, video and JUnit/HTML reports; swiftbrowse mcp serves the Model Context Protocol for agents. See the main README.

Platform wheels include the native binary (Linux x86_64/aarch64, macOS arm64/x86_64, Windows x64). Elsewhere, the pure-Python wheel uses a swiftbrowse on your PATH, or SWIFTBROWSE_BIN.

Metadata

Release files for swiftbrowse 0.1.0

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

Built distributions (wheels)

Table of built distributions (wheels) for swiftbrowse 0.1.0
File
swiftbrowse-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
swiftbrowse-0.1.0-py3-none-manylinux_2_35_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64 Details
swiftbrowse-0.1.0-py3-none-manylinux_2_35_aarch64.whl Python 3 none Linux glibc 2.35+ ARM64 Details
swiftbrowse-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
swiftbrowse-0.1.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details
swiftbrowse-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 MB

Release files / swiftbrowse-0.1.0-py3-none-win_amd64.whl

Download URL swiftbrowse-0.1.0-py3-none-win_amd64.whl
Size 3.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
a74ded00c08e7de095dff3cc9abc98e1676d929bebd08a009e9ef0cf0948ea61
BLAKE2b-256 checksum
How to use checksums
3cba0171c1067f5eb8f9a5c9f040db742e5f50cad0cd868d6e5530ccbf061335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / swiftbrowse-0.1.0-py3-none-manylinux_2_35_x86_64.whl

Download URL swiftbrowse-0.1.0-py3-none-manylinux_2_35_x86_64.whl
Size 3.5 MB
Tags Linux glibc 2.35+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ed9495f2095687d0b14dc6b81cd9ae24067428993bddaba664d86533acebcf35
BLAKE2b-256 checksum
How to use checksums
8b59cbfad9d5301695fc20bad42cb393a85a24482345c6578b0103aa6b2ab40d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / swiftbrowse-0.1.0-py3-none-manylinux_2_35_aarch64.whl

Download URL swiftbrowse-0.1.0-py3-none-manylinux_2_35_aarch64.whl
Size 3.2 MB
Tags Linux glibc 2.35+ ARM64 Python 3
SHA-256 checksum
How to use checksums
6b92a95ad723758c9a5ebeeb2442478f0b9129c9ec0174d3faba6df12ca3f627
BLAKE2b-256 checksum
How to use checksums
11420e0ccff78c62a82b87c09011f8acc62f0d7a286c1f5b6a0e5a1964da8572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / swiftbrowse-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL swiftbrowse-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 3.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
83f622ad8746412fea07a4e01204b412fb00c1f8eaf47b4a217766964789a637
BLAKE2b-256 checksum
How to use checksums
88d82d3915173b55d6d5808538024a52fa96837f9806d7b4d0525fe9686b75aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / swiftbrowse-0.1.0-py3-none-macosx_10_12_x86_64.whl

Download URL swiftbrowse-0.1.0-py3-none-macosx_10_12_x86_64.whl
Size 3.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9582164270d1973bf49fa46e18739cdbbeb87a8f6a026fd30c85bc32a2a15dc5
BLAKE2b-256 checksum
How to use checksums
284aea37ee26650e1ac969028a06e9cef556aff6368eec3ed252b547ec0fe13e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / swiftbrowse-0.1.0-py3-none-any.whl

Download URL swiftbrowse-0.1.0-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
609ae70dd64d67cd1e8436bea7cbf0f7e739a05f8486c855f09aae47cf185ac6
BLAKE2b-256 checksum
How to use checksums
b09c94b86ab732244673e9dc01d1f91f7db959f09ba8a4ce2407cbf184a66c53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for swiftbrowse 0.1.0

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.

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