Skip to main content

pywebview DevTools Helper

pywebview-devtools is the optional native helper package for pywebview-devtools-mcp.

Install it in the same Python environment as your pywebview app:

pip install pywebview-devtools

Enable it before creating pywebview windows:

import pywebview_devtools
import webview

pywebview_devtools.enable()

remote_port = pywebview_devtools.remote_debugging_port()
if remote_port:
    webview.settings["REMOTE_DEBUGGING_PORT"] = remote_port

window = webview.create_window("Demo", "https://example.com")
webview.start(debug=True)

The helper only starts when PYWEBVIEW_DEVTOOLS is enabled. Launch mode in the MCP server sets this automatically. For manual attach mode, set PYWEBVIEW_DEVTOOLS=1 before starting the app and provide stable helper connection values with PYWEBVIEW_DEVTOOLS_HOST, PYWEBVIEW_DEVTOOLS_PORT, and PYWEBVIEW_DEVTOOLS_TOKEN when needed.

The helper listens on a local HTTP endpoint and requires a Bearer token. Treat the token as sensitive and avoid enabling the helper in production builds unless you have a deliberate debugging workflow.

Metadata

Release files for pywebview-devtools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywebview-devtools 0.1.0
File Size Uploaded
pywebview_devtools-0.1.0.tar.gz 11.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pywebview-devtools 0.1.0
File Interpreter ABI Platform
pywebview_devtools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 21.1 kB

Release files / pywebview_devtools-0.1.0.tar.gz

Download URL pywebview_devtools-0.1.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6b18155c587e1c54114ef7de61610b9957c87479ff3696b354323c00aa0f5354
BLAKE2b-256 checksum
How to use checksums
55bf9ad84f6da3b8a2f579c9d126b9e1d8d9ae80131b55f5b6e2d04b70762424
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pywebview_devtools-0.1.0-py3-none-any.whl

Download URL pywebview_devtools-0.1.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4b5f88090a426540ccaaefb04320ed59b80bdc3dc0bc715f17d27f1c48ba2d24
BLAKE2b-256 checksum
How to use checksums
495f1484132235d9e536d5682bb86c87e02055ca83fe9ca195ab0abc211cd6ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page