pywebview
Build GUI for your Python program with JavaScript, HTML, and CSS
Decision gist · record as of 2026-08-14
Yes, if you want to build a cross-platform desktop GUI in Python using web technologies without heavy toolkit overhead. The package is actively maintained, has no known vulnerabilities, and uses a permissive BSD license. Install friction is low, though you may need platform-specific system libraries. It's well-suited for developers comfortable with both Python and web technologies.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Platform-specific system libraries may be required (e.g., GTK/Qt development headers on Linux); see installation guide.
- Requires Python >=3.8.
- Low install friction; ships as a pure-Python wheel.
License · maintenance · safety
permissive license (permissive) — BSD 3-Clause License permits commercial and private use with minimal restrictions; you may use, modify, and distribute pywebview provided you retain the copyright notice and disclaimer.
last release 2026-04-15 (121 days) · last repo commit 2026-08-11 · 5,981 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,680,813 downloads/mo, #3,657 on PyPI
Alternatives
Verify before relying
pip install pywebview
import pywebview
pywebview.create_window('Hello world', 'https://pywebview.flowrl.com/hello')
pywebview.start()- Whether the built-in HTTP server is suitable for production use or intended only for development.
- Performance characteristics and memory footprint compared to other desktop webview frameworks.
- Specific DOM manipulation capabilities and their scope beyond the examples shown.
What it is and what it does
pywebview is a lightweight wrapper around native webview components that lets you build desktop GUI applications using HTML, CSS, and JavaScript while keeping the logic in Python. It uses the platform's native rendering engine—WinForms on Windows, Cocoa on macOS, and Qt or GTK on Linux—so you don't bundle a separate browser engine, keeping executable size small. The package includes a built-in HTTP server for serving your UI, two-way communication between Python and JavaScript, DOM support, and native window management (menus, dialogs, window control).
It's designed for developers who want to leverage web technologies for UI but keep their application logic in Python. You write your interface in HTML/CSS/JavaScript and call Python functions from the frontend, or update the DOM from Python. The framework handles the platform-specific details, so the same code runs on Windows, macOS, and Linux with native look and feel.
Use it for
- Build a cross-platform desktop application with a web-based UI without bundling a heavy GUI toolkit.
- Create a Python tool with an HTML/CSS interface for configuration, monitoring, or data visualization.
- Develop a native-looking desktop app that reuses existing web components or React code.
- Wrap a Python backend service with a lightweight GUI that communicates via Python-JavaScript bridge.
- Prototype or ship a desktop application quickly using familiar web technologies while keeping the executable small.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you want to build a cross-platform desktop GUI in Python using web technologies without heavy toolkit overhead.
The package is actively maintained, has no known vulnerabilities, and uses a permissive BSD license. Install friction is low, though you may need platform-specific system libraries. It's well-suited for developers comfortable with both Python and web technologies.
Install
pywebview on PyPI
Before you install
Low install friction; ships as a pure-Python wheel. Runtime dependencies are platform-specific (pythonnet on Windows, pyobjc frameworks on macOS, QtPy on Linux), so actual installation may require system libraries—check the installation guide for your platform.
Platform-specific system libraries may be required (e.g., GTK/Qt development headers on Linux); see installation guide. Requires Python >=3.8.
License in practice
BSD 3-Clause License permits commercial and private use with minimal restrictions; you may use, modify, and distribute pywebview provided you retain the copyright notice and disclaimer.
Quickstart
pip install pywebview
import pywebview
pywebview.create_window('Hello world', 'https://pywebview.flowrl.com/hello')
pywebview.start()
Verify before relying
- Whether the built-in HTTP server is suitable for production use or intended only for development.
- Performance characteristics and memory footprint compared to other desktop webview frameworks.
- Specific DOM manipulation capabilities and their scope beyond the examples shown.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 12 packagespythonnetpyobjc-corepyobjc-framework-Cocoapyobjc-framework-Quartzpyobjc-framework-WebKitpyobjc-framework-securitypyobjc-framework-UniformTypeIdentifiersQtPyimportlib_resourcesproxy_toolsbottletyping_extensions |
| Maintenance | Actively maintained 121 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,680,813 / month, #3,657 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: MacOS XEnvironment :: Win32 (MS Windows)Environment :: X11 Applications :: GTKEnvironment :: X11 Applications :: QtIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Application FrameworksTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: User Interfaces |
Evidence: pywebview-6.2.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “desktop GUI with HTML and JavaScript”
- pywebviewpywebview wraps native webview components to display…
- PyQtWebEnginePyQtWebEngine provides Python bindings to embed Chromium-based web…
- fletFlet is a Python framework for building cross-platform mobile,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also PyQtWebEngine · telepath · pysimplegui · PyQt5 · xvfbwrapper · PyQt6-WebEngine · PyGObject · wxPython · nicegui · streamlit-javascript