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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywebview2-0.1.6.tar.gz (559.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywebview2-0.1.6-py3-none-any.whl (586.0 kB view details)

Uploaded Python 3

File details

Details for the file pywebview2-0.1.6.tar.gz.

File metadata

  • Download URL: pywebview2-0.1.6.tar.gz
  • Upload date:
  • Size: 559.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pywebview2-0.1.6.tar.gz
Algorithm Hash digest
SHA256 425a6b2f2d9e52616f232a64e120edb93ab633fe14c497b3681ba211556dbfa0
MD5 6a9580bde8afe30d523876bdc6a8acfc
BLAKE2b-256 a3848cfa8ab6157e2ea30fb7c8d883b714d727a5780dd05cd2f6cec52e592269

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywebview2-0.1.6.tar.gz:

Publisher: publish.yml on imattau/pywebview2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pywebview2-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pywebview2-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 586.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for pywebview2-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 eecf2664e019b69146b8eb16b3a158287b2701eac5d31198529a4b7bb9b99d69
MD5 3f31868d8568c3079e20405fb773f6ec
BLAKE2b-256 c87718cb8e33f2b65ec8a6ea84b7fe69e162b615caa0fdc0fd030ef8d9ed0026

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywebview2-0.1.6-py3-none-any.whl:

Publisher: publish.yml on imattau/pywebview2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.7

2 files

This release

0.1.6 This release

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

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