Build GUI for your Python program with JavaScript, HTML, and CSS.
Project description
pywebview is a lightweight cross-platform wrapper around a webview component 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. You can use pywebview either with a lightweight web framework like Flask or Bottle or on its own with a two way bridge between Python and DOM.
pywebview 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, pywebview does not bundle a heavy GUI toolkit or web renderer with it keeping the executable size small. pywebview is compatible with Python 3.
pywebview is created by Roman Sirokov.
Getting started
Install
pip install pywebview
- Currently only python version 3.8 or older supported on Windows.
- On Linux you need additional libraries. Refer to the installation page for details.
Hello world
import webview
webview.create_window('Hello world', 'https://pywebview.flowrl.com/hello')
webview.start()
Explore pywebview further by reading documentation, examples or contributing. If React is your thing, get started right away with React boilerplate.
Contributors
Code Contributors
This project exists thanks to all the people who contribute. [Contribute].
Financial Contributors
Become a financial contributor and help us sustain our community. More donation options are outlined on the Donating page.
Individuals
Organizations
Support this project with your organization. Your logo will show up here with a link to your website. [Contribute]
Project details
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
File details
Details for the file pequenawebview-4.1.3.tar.gz
.
File metadata
- Download URL: pequenawebview-4.1.3.tar.gz
- Upload date:
- Size: 392.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99383a07459259ef1f62393cfaaa0c3ee723f9faaec7d6d1dfd05ea7727fa26b |
|
MD5 | f155df7db823bf26301bcacb3615c50b |
|
BLAKE2b-256 | 45aaf4429378af95784797c78038db092818e83f43a16600fa1da31363d80ab4 |
File details
Details for the file pequenawebview-4.1.3-py3-none-any.whl
.
File metadata
- Download URL: pequenawebview-4.1.3-py3-none-any.whl
- Upload date:
- Size: 405.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 190f8a1bd52305e7b770555b42b783aa1dd750f6084f0e0193c14360e7d85e00 |
|
MD5 | 5c1b9f64060f8ce3d26d33cb16373421 |
|
BLAKE2b-256 | 5c86db31ed23dc700028975a0de8976204a0fd2edc915415870bca923aa9bc4f |