Skip to main content

Python client for lucarne — create and drive self-hostable browser sessions (the engine is a Node daemon).

Project description

lucarne (Python client)

Python client for lucarne — self-hostable browser sessions you can drive (CDP/Playwright), watch + control (porthole), and record, on your own machine and your own IP.

This package is the client. The engine is a Node daemon — install and run it separately (npm install -g lucarne && lucarne serve); you talk to it over HTTP, and drive the browser over CDP with Playwright.

pip install lucarne playwright
from lucarne import LucarneClient
from playwright.sync_api import sync_playwright

luc = LucarneClient("http://127.0.0.1:7800")          # token="..." if the daemon needs one
s = luc.create(profile="demo", backend="native")
print("watch:", s["viewUrl"])

with sync_playwright() as p:
    page = p.chromium.connect_over_cdp(s["cdpUrl"]).contexts[0].pages[0]
    page.goto("https://example.com", wait_until="domcontentloaded")
    print(page.title())

The client is stdlib-only (no dependencies) and covers health / create / list / get / destroy / act / content. For the rest of the API, call the HTTP endpoints directly — see the OpenAPI spec at /openapi.json. MIT © Aaron Volter.

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

lucarne-1.4.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

lucarne-1.4.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file lucarne-1.4.0.tar.gz.

File metadata

  • Download URL: lucarne-1.4.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lucarne-1.4.0.tar.gz
Algorithm Hash digest
SHA256 0692fc33c9f1b654c4967a3d1a9e6c136c7d3fa4cf4e76f72cd10020dd6247d1
MD5 48ea02410b71a53c237b90ae497dad9b
BLAKE2b-256 e7cb0c69f8c3bdadc4e921af20a9896c99a89a16e025300ab80d0c4887427c84

See more details on using hashes here.

Provenance

The following attestation bundles were made for lucarne-1.4.0.tar.gz:

Publisher: pypi.yml on volter-ai/lucarne

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

File details

Details for the file lucarne-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: lucarne-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lucarne-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5744479860f95cf0791f5e5c7eedc8a4fc1624ace9bbda5effae85d9444ad9d2
MD5 25bd8b3d443917113e8e959ad9b1e083
BLAKE2b-256 0603d2352d1ede16d77087550b42a9627096923ecdfab5e704fdecef2ab8879d

See more details on using hashes here.

Provenance

The following attestation bundles were made for lucarne-1.4.0-py3-none-any.whl:

Publisher: pypi.yml on volter-ai/lucarne

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