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
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pywebview2-0.1.2.tar.gz.
File metadata
- Download URL: pywebview2-0.1.2.tar.gz
- Upload date:
- Size: 556.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e0bf079986aa6fe9a0173546d2251adcab9935e535abf02649c4b93811abde1
|
|
| MD5 |
93809e0ee746582af956c7de07332bbe
|
|
| BLAKE2b-256 |
1e2eaccc4275f2a1ffefc62ce281359e42c28c9908503e23889cad5f8e1a3bf3
|
Provenance
The following attestation bundles were made for pywebview2-0.1.2.tar.gz:
Publisher:
publish.yml on imattau/pywebview2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pywebview2-0.1.2.tar.gz -
Subject digest:
3e0bf079986aa6fe9a0173546d2251adcab9935e535abf02649c4b93811abde1 - Sigstore transparency entry: 2494723195
- Sigstore integration time:
-
Permalink:
imattau/pywebview2@3516bdb588bf2dd58bb25ea8e2c9c1c339f1b4a4 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/imattau
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3516bdb588bf2dd58bb25ea8e2c9c1c339f1b4a4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pywebview2-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pywebview2-0.1.2-py3-none-any.whl
- Upload date:
- Size: 582.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4856c84fc983e9f5a5dc6c515fb490ff038e0d7fb184c4dc85770d619104da1
|
|
| MD5 |
ecb064935509cc43294e632734e190a0
|
|
| BLAKE2b-256 |
dd7916f58bac0ba598e6378dd7c06397dd081b30e207242a1f3f836a82e675c1
|
Provenance
The following attestation bundles were made for pywebview2-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on imattau/pywebview2
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pywebview2-0.1.2-py3-none-any.whl -
Subject digest:
b4856c84fc983e9f5a5dc6c515fb490ff038e0d7fb184c4dc85770d619104da1 - Sigstore transparency entry: 2494723228
- Sigstore integration time:
-
Permalink:
imattau/pywebview2@3516bdb588bf2dd58bb25ea8e2c9c1c339f1b4a4 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/imattau
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@3516bdb588bf2dd58bb25ea8e2c9c1c339f1b4a4 -
Trigger Event:
release
-
Statement type: