Skip to main content

pywebview2 logo

PyPI version PyPI downloads Build status

https://github.com/imattau/pywebview2

pywebview2 is a lightweight native webview wrapper that allows to display HTML content in its own native GUI window. It gives you power of web technologies in your desktop application, hiding the fact that GUI is browser based. pywebview2 ships with a built-in HTTP server, DOM support in Python and window management functionality.

pywebview2 is available for Windows, macOS, Linux (GTK or QT) and Android. It uses native GUI for creating a web component window: WinForms on Windows, Cocoa on macOS and QT or GTK on Linux. If you choose to freeze your application, pywebview2 does not bundle a heavy GUI toolkit or web renderer with it keeping the executable size small.

pywebview2 provides advanced features like window manipulation functionality, event system, built-in HTTP server, native GUI elements like application menu and various dialogs, two way communication between Javascript ↔ Python and DOM support.

pywebview2 is developed on top of the original pywebview created by Roman Sirokov.

Install

pip install pywebview2

You might need additional libraries. Refer to the documentation page for details.

Hello world

import webview
webview.create_window('Hello world', 'https://pywebview.flowrl.com/hello')
webview.start()

Explore pywebview2 further by reading documentation, exploring examples or contributing.

Sponsors

TestMu AI Sponsor

Code Contributors

This project thrives thanks to the contributions of our community. [Learn how to contribute].

Consulting services

If your company is looking for support with pywebview2 or needs a hand with full-stack development, the author of pywebview is available for hire. As a VAT-registered EU based professional, I specialize in a wide range of technologies, including JavaScript/TypeScript, React/Vue, Python, GIS, SQL databases, API integration, CI/CD pipelines and cloud solutions. For inquiries about availability and pricing details, reach out to roman@maumau.fi.

Donate

Become a financial contributor and help us sustain our community. More donation options are outlined on the Donating page.

Github Sponsor

Patreon

Open Collective

Metadata

Release files for pywebview2 0.1.7

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

Source distribution (sdist)

Source distribution for pywebview2 0.1.7
File Size Uploaded Provenance Actions
pywebview2-0.1.7.tar.gz 559.7 kB With provenance Details for pywebview2-0.1.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pywebview2 0.1.7
File Interpreter ABI Platform Actions
pywebview2-0.1.7-py3-none-any.whl Python 3 none any Details for pywebview2-0.1.7-py3-none-any.whl

Total release size: 1.1 MB

Release files / pywebview2-0.1.7.tar.gz

Download URL pywebview2-0.1.7.tar.gz
Size 559.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ff351892b123941bc559299d15275873ec7fd7e6bb1ba6874befeea0d2deec46
BLAKE2b-256 checksum
How to use checksums
ece6d2f8df7db05df68a05076461a6c1d9ebc05219e4d6a08d4734225de2c242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Release files / pywebview2-0.1.7-py3-none-any.whl

Download URL pywebview2-0.1.7-py3-none-any.whl
Size 586.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de4a93ea371cbab96b66aca7737f510b892f080571d2bd400d747abc1a3e3f7c
BLAKE2b-256 checksum
How to use checksums
a3e4722f014acd2f9422d3bca204a2ed34bc4c7be32be113b5bedfaeb645a041
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

Security for pywebview2 0.1.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pywebview2-0.1.7.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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