Skip to content

python: add lightpanda package (sidecar v1)#3043

Draft
arrufat wants to merge 4 commits into
mainfrom
python-bindings-v1
Draft

python: add lightpanda package (sidecar v1)#3043
arrufat wants to merge 4 commits into
mainfrom
python-bindings-v1

Conversation

@arrufat

@arrufat arrufat commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

pip-installable Python API driving the bundled binary over MCP HTTP: Browser/Session with one generated method per browser tool (lightpanda/_methods.py, regenerated from tools/list), run_script() replay, a CLI trampoline entry point, pytest suite against local fixtures, and pdoc docs generation.

arrufat added 4 commits July 23, 2026 18:09
pip-installable Python API driving the bundled binary over MCP HTTP:
Browser/Session with one generated method per browser tool
(lightpanda/_methods.py, regenerated from tools/list), run_script()
replay, a CLI trampoline entry point, pytest suite against local
fixtures, and pdoc docs generation.
Browser(args=[...]) forwards flags like --http-cache-dir to the spawned
lightpanda mcp process; needed by the pandascript-vs-cdp benchmark leg
and useful for cookies/robots flags generally.
PR_SET_PDEATHSIG on the spawned lightpanda mcp process (Linux) so a
SIGKILLed or crashed interpreter cannot leak a browser process — a
2h44m orphan surfaced during the v6 benchmark campaign. Regression
test kills a parent and asserts the sidecar exits.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant