Skip to main content

Helixwright

Helixwright is the Python automation SDK for Helix Browser.

Version 0.2.0 is a breaking V5-only architecture. It does not use CDP, WebDriver, Playwright, Selenium, direct chrome.exe launch, local profile folders, or local fingerprint generation.

Runtime Model

Client talks to Helix Browser Desktop Local API. Local API creates or reuses a server-owned profile, starts an automation session, and returns the private Browser RPC endpoint.

Page is returned by hw.launch(). Page actions use Browser RPC V5 only:

  • /rpc is used only for rpc.hello discovery.
  • Runtime page control must switch to /rpc/v5.
  • Required V5 methods are input.action, input.pointer_path, element.resolve, and element.action.
  • Older RPC V1/V2/V3/V4 cores are rejected.

Install

pip install helixwright

Local source development:

cd "G:\Helix Browser\repos\helixwright"
pip install -e .
python tests\ci.py

Quick Start

import helixwright as hw

with hw.launch("https://example.com", name="demo") as page:
    page.wait_for("body")
    print(page.title())
    page.locator("body").click()

Pass only the metadata you actually need. In the common case, URL and optional proxy are enough; profile identity and fingerprint are owned by Helix.

with hw.launch(
    "https://example.com",
    proxy="http://user:pass@127.0.0.1:7890",
) as page:
    print(page.profile_id, page.session_id)

Reuse an existing Helix profile explicitly:

with hw.launch("https://example.com", reuse_profile_id="p_existing") as page:
    print(page.url)

Public Objects

  • Client: Local API client and managers.
  • Page: primary page/session object returned by launch().
  • Locator: selector-bound element action object.
  • Input: low-level trusted mouse/keyboard/path injection.
  • MotionProfile: Python-visible motion defaults and pointer-path generator.
  • TraceController: AI/debug trace support, available as page.trace.

The old public Op, El, NoneEl, Fingerprint, account lookup launch, and old RPC fallback model are not part of this API.

Launch API

hw.launch(
    url=None,
    *,
    reuse_profile_id=None,
    name=None,
    group=None,
    tags=None,
    start_pages=None,
    proxy=None,
    client=None,
    base_url=None,
    headless=False,
    timeout_ms=30000,
    humanize=None,
    motion=None,
)

Reusable config:

cfg = hw.LaunchConfig(
    name="shop",
    url="https://example.com",
    proxy="http://127.0.0.1:7890",
    motion=hw.MotionProfile.balanced(),
)

with hw.launch(config=cfg) as page:
    page.locator("body").wait()

Unsupported old arguments raise TypeError, including account_id, profile_id, fingerprint, chrome, user_data_dir, persona, seed, and extra_args.

Locator Actions

Default actions are trusted browser-core actions. Eligible CSS locators use the V5 frame-flat element path, so clicks can auto-scroll the correct root, iframe/OOPIF, or scroll container target before clicking.

email = page.locator("input[type=email]")
email.fill("user@example.com")

page.locator("button[type=submit]").click()
page.locator("#result").wait("visible")
print(page.locator("#result").text())

Nested locators:

page.locator("form").locator("button[type=submit]").click()

Diagnostics:

print(page.locator("#login").resolve())
print(page.locator("#login").explain())

Low-Level Input

Use page.input only when you intentionally need raw control. For normal automation, prefer Locator.click() and Locator.fill().

page.input.click(100, 200)
page.input.wheel(600)
page.input.key("Enter")

page.input.pointer_path([
    {"x": 10, "y": 20, "dt": 0, "kind": "move"},
    {"x": 12, "y": 22, "dt": 16, "kind": "down", "buttons": 1},
    {"x": 40, "y": 55, "dt": 80, "kind": "up", "buttons": 0},
])

pointer_path() is one atomic Browser RPC V5 call. It does not emulate a path with many SDK round trips.

Humanize And Trajectory

humanize controls action-to-action timing. MotionProfile controls the Python-visible motion defaults and can generate full pointer paths.

with hw.launch("https://example.com", humanize="default") as page:
    page.locator("#email").fill("user@example.com")
    page.locator("#submit").click()

Implemented timing behavior:

  • humanize=True and humanize="default" enable deterministic per-profile think-time.
  • humanize="careful" uses a slower, more deliberate timing profile.
  • Timing is seeded from server-returned profile behavior data, so different profiles get different pacing distributions.
  • Session nonce adds small run-to-run variation without using per-call random jitter.

Motion behavior:

  • Locator.click() uses Browser RPC V5 element.action; the browser core owns the trusted click path, frame/OOPIF coordinates, auto-scroll, and receipt.
  • hw.MotionProfile exposes presets such as fast, balanced, careful, and slider.
  • hw.launch(..., motion=...) sets the default motion profile for page.input.
  • page.input.drag() uses the page motion profile when profile/duration/hold/ overshoot/tremor are not explicitly provided.
  • page.input.pointer_path(points) is the public low-level way to inject a full custom trajectory as one atomic core RPC.
motion = hw.MotionProfile.slider(seed=123)

with hw.launch("https://example.com", motion=motion, humanize="careful") as page:
    page.input.drag(120, 350, 380, 350)
    page.input.pointer_path(page.motion.drag_path(120, 350, 380, 350))

MotionProfile is intentionally the Python-side policy object. Browser RPC V5 still owns trusted event dispatch and default element actions.

Trace

Trace is a debug and AI authoring surface, separate from normal runtime actions.

with hw.launch("https://example.com") as page:
    page.trace.start()
    page.trace.action("body-visible", lambda: page.wait_for("body"), settle_ms=300)
    page.trace.mark("final", url=page.url)
    page.trace.export("trace.json")

CLI capture for an already-running automation session:

python -m helixwright trace --session auto_123 --duration 15 --output trace.json

Client Managers

client = hw.Client()
print(client.health())
print(client.session())

profile = client.profiles.create(name="demo", proxy="http://127.0.0.1:7890")
profile.update(name="renamed")
profile.clone(count=2)
profile.sync_up()
profile.sync_down()

client.proxy.check("http://127.0.0.1:7890")
client.cores.list()
client.cores.ensure("chromium", "149.0.7827.156")
client.browser.active()
client.browser.start(profile.id)
client.browser.stop(profile.id)
client.browser.stop_all()
client.automation.list()
client.automation.stop("auto_123")

The SDK no longer exposes client.fingerprint or client.automation.start(). Use hw.launch() / client.automation.launch() so profile creation and session start remain one server-owned operation.

Errors

Common error types:

Error Meaning
LocalApiUnavailable Desktop Local API is unreachable.
DesktopNotLoggedIn Desktop is reachable but not logged in.
LocalApiError Local API returned a business error.
ProfileNotFound The requested profile id does not exist.
AutomationEndpointUnavailable Local API/core did not return a usable V5 RPC endpoint.
AutomationSessionNotFound The requested automation session does not exist.
RpcError Browser RPC returned a structured error.
TransportError Browser RPC transport failed, usually because the browser exited.
WaitTimeoutError A page wait condition timed out.

Examples

cd "G:\Helix Browser\repos\helixwright"
python examples\99_offline_mock_demo.py
python examples\00_helixwright_quickstart.py
python examples\01_client_managers.py
python examples\02_launch_config_and_actions.py
python examples\03_native_trace_state_machine.py

Metadata

Release files for helixwright 0.2.0

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

Source distribution (sdist)

Source distribution for helixwright 0.2.0
File Size Uploaded Provenance Actions
helixwright-0.2.0.tar.gz 136.4 kB Without provenance Details for helixwright-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for helixwright 0.2.0
File Interpreter ABI Platform Actions
helixwright-0.2.0-py3-none-any.whl Python 3 none any Details for helixwright-0.2.0-py3-none-any.whl

Total release size: 267.6 kB

Release files / helixwright-0.2.0.tar.gz

Download URL helixwright-0.2.0.tar.gz
Size 136.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5fa9fb5e70af3a91fadf646c456ffa8ebdeb6c76e83747bd59c0e4b2835252d5
BLAKE2b-256 checksum
How to use checksums
e2499758fb86d480e406eec91ad3b203d2cee37a850f64cd1b7fe361f02f1a62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Release files / helixwright-0.2.0-py3-none-any.whl

Download URL helixwright-0.2.0-py3-none-any.whl
Size 131.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b13784c8a95e794d531e953a68440c9091b9b713d6d384a5a88060a26c0ce450
BLAKE2b-256 checksum
How to use checksums
8a9164ad3126538ba9f9923983ba8e8f6ebeedf3d76b4ed5643d44f3c9e09e73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.0

Security for helixwright 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 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