Repository navigation
Releases
1.0.3
Bundles lightpanda-io/browser 1.0.3. Install with pip install lightpanda.
1.0.2
Bundles lightpanda-io/browser 1.0.2. Install with pip install lightpanda.
1.0.1
Bundles lightpanda-io/browser 1.0.1. Install with pip install lightpanda.
1.0.0.post2
Bundles lightpanda-io/browser 1.0.0. Install with pip install lightpanda.
1.0.0.post1
Bundles lightpanda-io/browser 1.0.0. Install with pip install lightpanda.
1.0.0
Bundles lightpanda-io/browser 1.0.0. Install with pip install lightpanda.
0.4.1.post1
Bundles lightpanda-io/browser 0.4.1. Install with pip install lightpanda.
0.4.1
Bundles lightpanda-io/browser 0.4.1. Install with pip install lightpanda.
0.4.0-1
0.4.0
First PyPI release of the Python client for Lightpanda, a lightweight headless browser. Bundles lightpanda-io/browser 0.4.0: no separate browser download.
pip install lightpanda # or: uv add lightpandaWhat's included
Browser/Session: sync API.Browser()spawns the bundled binary in MCP mode and talks JSON-RPC over local HTTP;new_session()returns aSessionthat exposes every browser tool as a typed, documented method (goto,extract,markdown,tree,click,fill,wait_for_selector,evaluate,screenshot, …). Dict/list arguments such asextract'sschemaare serialized for you, and JSON results come back as Python values.AsyncBrowser/AsyncSession: asyncio facade over the same API. Starts lazily onasync withor firstnew_session(), runs sessions concurrently on a thread pool (max_concurrency), andAsyncBrowser.wrap(browser)adopts an existing syncBrowser.SessionandAsyncSessionare context managers that close the session on exit.run_script/run_script_async: replay a saved PandaScript agent script (lightpanda agent/save) without any LLM, with an optionalenvmapping.lightpandaCLI on PATH: the console script execs the bundled binary, solightpanda agent,lightpanda fetchandlightpanda serveare available after install.- Errors:
LightpandaErrorbase, withProtocolError,ToolErrorandScriptError. - Process safety: the browser subprocess is killed when the interpreter exits (
PR_SET_PDEATHSIGon Linux).
Wheels
One py3-none-<platform> wheel per platform, any Python ≥ 3.10:
manylinux_2_35_x86_64,manylinux_2_35_aarch64macosx_13_0_x86_64,macosx_14_0_arm64
The client library is Apache-2.0; the bundled browser binary is AGPL-3.0.