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 both Python 2 and 3.
pywebview is created by Roman Sirokov. Maintained by Roman and Shiva Prasad.
Getting started
Install
pip install pywebview
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')
Explore pywebview further by reading documentation, examples or contributing .
Supporting pywebview
pywebview is a BSD licensed open source project. It is an independent project with no corporate backing. If you find pywebview useful, consider supporting it. More donation options are outlined on the Donating page.
Project details
Release history Release notifications | RSS feed
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 pywebview-2.4.tar.gz
.
File metadata
- Download URL: pywebview-2.4.tar.gz
- Upload date:
- Size: 41.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54e640be38e02a0a08d39a04c29e7061e5566b420c07a347c04a1392e6db14b9 |
|
MD5 | b3d93fd23c36c05691f96e6980e64527 |
|
BLAKE2b-256 | 961d6f75917b0bc7d3f42b256f949174a9716aed4dc2e71d5378545d4c05f4d2 |
File details
Details for the file pywebview-2.4-py3-none-any.whl
.
File metadata
- Download URL: pywebview-2.4-py3-none-any.whl
- Upload date:
- Size: 50.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0626c869dc8caada4a70db905ee140b1bd8efbfd1c50d5cda3c62ce6d5b75f69 |
|
MD5 | f2e58067eb78830b08232f8aea36986f |
|
BLAKE2b-256 | 2514a75a907808cfcf4573ddfdb802ad563a59f8888b602d8500e3ddaa2d9414 |