Skip to content

Python SDK docs: snake_case names and generated API reference link - #91

Merged
arrufat merged 1 commit into
mainfrom
python-sdk-snake-case
Sep 2, 2026
Merged

arrufat merged 1 commit into
mainfrom
python-sdk-snake-case

Conversation

@arrufat

@arrufat arrufat commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Follows lightpanda-io/lightpanda-python#3, which drops the camelCase aliases from the Python package and converts the action arguments to snake_case (wait_for_selector, backend_node_id, max_depth, ...), and publishes the pdoc reference to GitHub Pages at https://lightpanda.io/docs/python/ (see #92 for the workflow that publishes it).

  • Reference: the "Calling an action" section now states the snake_case rule and links the generated reference; call is documented as the escape hatch that takes the browser's own names. The method column loses its camelCase aliases and every Arguments column is renamed. Result keys such as backendNodeId in tree/links/node_details output stay camelCase, since that is what the browser returns.
  • Guide: the callout and the pointer to the reference updated accordingly.
  • Dropped the four "on the 0.4.0 wheel" caveats: the next wheel exposes wait_until, max_bytes, strip and limit as keywords and returns an inline screenshot as bytes.

This describes the next Python release, so it should be merged alongside it rather than before.

…ated API reference

The Python package now exposes every action and its arguments in snake_case
only (wait_for_selector, backend_node_id, max_depth, ...), with Session.call
as the escape hatch that takes the browser's own names. Drop the camelCase
aliases and the keyword-case warning, rename the arguments in every table,
and link the pdoc reference now published at lightpanda.io/lightpanda-python.

Also drop the 0.4.0 caveats: the next wheel exposes wait_until, max_bytes,
strip and limit as keywords and returns an inline screenshot as bytes.
@arrufat
arrufat requested a review from cdebled September 2, 2026 14:35
@arrufat
arrufat merged commit e99fda6 into main Sep 2, 2026
1 check passed
@arrufat
arrufat deleted the python-sdk-snake-case branch September 2, 2026 17:50
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.

2 participants