MCPcopy Index your code
hub / github.com/r0x0r/pywebview

github.com/r0x0r/pywebview @6.2.1 sqlite

repository ↗ · DeepWiki ↗ · release 6.2.1 ↗
1,434 symbols 4,134 edges 171 files 163 documented · 11% 3 cross-repo links
README

pywebview logo

PyPI version PyPI downloads Build status

https://pywebview.flowrl.com

pywebview 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. pywebview ships with a built-in HTTP server, DOM support in Python and window management functionality.

pywebview 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, pywebview does not bundle a heavy GUI toolkit or web renderer with it keeping the executable size small.

pywebview 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.

pywebview is created by Roman Sirokov.

Install

pip install pywebview

You might 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, exploring examples or contributing. If React is your thing, get started right away with React boilerplate.

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 pywebview 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

Extension points exported contracts — how you extend this code

JsApiCallbackWrapper (Interface)
(no doc) [4 implementers]
interop/android/lib/src/main/java/com/pywebview/JsApiCallbackWrapper.java
EventCallbackWrapper (Interface)
(no doc) [4 implementers]
interop/android/lib/src/main/java/com/pywebview/EventCallbackWrapper.java
WebViewRequestInterceptor (Interface)
Interface for intercepting WebView requests and responses. [1 implementers]
interop/android/lib/src/main/java/com/pywebview/WebViewRequestInterceptor.java

Core symbols most depended-on inside this repo

run_test
called by 98
tests/util.py
get
called by 96
webview/platforms/cocoa.py
evaluate_js
called by 80
tests/android/main.py
set
called by 66
webview/event.py
append
called by 42
webview/dom/element.py
get_element
called by 41
webview/dom/dom.py
call
called by 39
webview/platforms/cef.py
get
called by 31
webview/dom/propsdict.py

Shape

Function 663
Method 639
Class 111
Route 18
Interface 3

Languages

Python92%
TypeScript6%
Java3%

Modules by API surface

webview/platforms/cocoa.py127 symbols
webview/platforms/qt.py109 symbols
webview/platforms/gtk.py96 symbols
webview/platforms/winforms.py82 symbols
webview/platforms/android/__init__.py58 symbols
webview/js/lib/polyfill.js44 symbols
tests/test_state.py43 symbols
webview/window.py40 symbols
webview/platforms/cef.py38 symbols
webview/dom/element.py36 symbols
webview/util.py30 symbols
tests/test_evaluate_js.py27 symbols

Dependencies from manifests, versioned

@vuepress/bundler-vite2.0.0-rc.26 · 1×
@vuepress/plugin-icon2.0.0-rc.118 · 1×
@vuepress/plugin-links-check2.0.0-rc.112 · 1×
@vuepress/plugin-medium-zoom1.9.10 · 1×
directory-tree3.5.1 · 1×
sass-embedded1.83.0 · 1×
vuepress2.0.0-rc.26 · 1×
vuepress-theme-hope2.0.0-rc.98 · 1×
bottle
proxy_tools
typing_extensions

For agents

$ claude mcp add pywebview \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact