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
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 lucarne-1.4.1.tar.gz.
File metadata
- Download URL: lucarne-1.4.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a7b6458a8a19df5b8d730763a2d27eb254f98e9c58b4a3e84977f9ffae4a76a
|
|
| MD5 |
af34a9dbbbcb4e97af9a192570787f5e
|
|
| BLAKE2b-256 |
d8e2e7e89b020c05bf72ef5cd7ae184a999bce6400a7a1de2f801257c9a1a34d
|
Provenance
The following attestation bundles were made for lucarne-1.4.1.tar.gz:
Publisher:
pypi.yml on volter-ai/lucarne
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lucarne-1.4.1.tar.gz -
Subject digest:
7a7b6458a8a19df5b8d730763a2d27eb254f98e9c58b4a3e84977f9ffae4a76a - Sigstore transparency entry: 1977801419
- Sigstore integration time:
-
Permalink:
volter-ai/lucarne@cbc0a66f06b38f214bc006edd68e72dfcf898b68 -
Branch / Tag:
refs/tags/py-v1.4.1 - Owner: https://github.com/volter-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@cbc0a66f06b38f214bc006edd68e72dfcf898b68 -
Trigger Event:
push
-
Statement type:
File details
Details for the file lucarne-1.4.1-py3-none-any.whl.
File metadata
- Download URL: lucarne-1.4.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d41261024fe2016fdd26e7864d7986600bc226a55ecacda6dff668d32d1147ed
|
|
| MD5 |
cc9448c0fdecf1e2b883aa8e0d7fb529
|
|
| BLAKE2b-256 |
e8db44c907bed93bab0986b2aafbc732a05bbd7c0de36eb3b531613073824f33
|
Provenance
The following attestation bundles were made for lucarne-1.4.1-py3-none-any.whl:
Publisher:
pypi.yml on volter-ai/lucarne
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lucarne-1.4.1-py3-none-any.whl -
Subject digest:
d41261024fe2016fdd26e7864d7986600bc226a55ecacda6dff668d32d1147ed - Sigstore transparency entry: 1977801546
- Sigstore integration time:
-
Permalink:
volter-ai/lucarne@cbc0a66f06b38f214bc006edd68e72dfcf898b68 -
Branch / Tag:
refs/tags/py-v1.4.1 - Owner: https://github.com/volter-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@cbc0a66f06b38f214bc006edd68e72dfcf898b68 -
Trigger Event:
push
-
Statement type: