awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
r0x0r avatar

r0x0r/pywebview

0
View on GitHub↗
5,917 星标·626 分支·Python·BSD-3-Clause·6 次浏览pywebview.flowrl.com↗

Pywebview

pywebview is a cross-platform desktop GUI framework for Python that renders HTML, CSS, and JavaScript content using the operating system's native web rendering engine. It enables developers to build desktop applications that run on Windows, macOS, and Linux from a single Python codebase, with the web frontend displayed in a lightweight, native window.

The framework provides a bidirectional JavaScript-Python bridge for real-time data exchange between frontend and backend, along with the ability to manipulate the Document Object Model directly from Python without writing JavaScript. It includes an embedded HTTP server for serving local web content, native OS integration for accessing system menus and file dialogs, and a window event callback system that triggers Python functions in response to lifecycle events like loading, closing, or resizing.

Developers can choose between several architectural patterns, including a serverless approach using the built-in API, an HTTP-server model that runs a Flask server alongside the desktop window, or a React desktop app scaffolding with automatic bundler configuration. The framework also supports application bundling with tools like PyInstaller and Nuitka for single-file desktop distribution.

Features

  • Cross-Platform Desktop Toolkits - Provides a cross-platform desktop toolkit that runs on Windows, macOS, and Linux from a single Python codebase.
  • Webview Content Renderers - Renders HTML, CSS, and JavaScript content in a lightweight, cross-platform desktop GUI window using the system's native webview component.
  • Embedded Webview Servers - Ships an embedded HTTP server to serve local HTML and API content for the desktop webview window.
  • Python-JavaScript Bridges - Implements a bidirectional bridge for calling Python functions from JavaScript and vice versa in real time.
  • Web-Technology Desktop GUIs - Builds native desktop applications using HTML, CSS, and JavaScript as the frontend, controlled by a Python backend.
  • Native HTML Rendering Engines - Uses the operating system's built-in web rendering engine to display HTML content in a desktop window.
  • Webview-Based Frameworks - Ships a Python framework that renders HTML/CSS/JavaScript in a native system webview for desktop apps.
  • Python DOM Manipulators - Reads and modifies the webview's Document Object Model directly from Python code without JavaScript.
  • Python DOM Manipulators - Provides a Python API to traverse and modify the webview's DOM directly without writing JavaScript.
  • Python Desktop Bundlers - Integrates with PyInstaller, Nuitka, and py2app to bundle the application into a distributable executable.
  • React Desktop App Development - Scaffolds a complete React-based desktop application with automatic bundler configuration and build steps.
  • Server-Backed Desktop Apps - Communicates between frontend and backend by running a Flask server alongside the desktop window.
  • Serverless Desktop Apps - Communicates between frontend and backend using a built-in API that eliminates the need for an external server.
  • Desktop OS Visual Components - Accesses operating system menus, dialogs, and window properties for a consistent desktop experience.
  • Window Property Setters - Controls window size, position, title, and fullscreen mode and responds to window lifecycle events like close or resize.
  • Window State Callbacks - Triggers Python functions in response to window lifecycle events like loading, closing, or resizing.
  • Desktop Executables - Packages Python webview apps into standalone executables using PyInstaller or Nuitka for distribution.
  • File Dialogs - Opens native file dialogs to select files for reading or saving, and accepts dropped files by retrieving their full paths.
  • Native GUI Component Controls - Adds application menus, file dialogs, and other native GUI elements to the webview window for a desktop-like experience.
  • Window Event Handling - Fires callbacks when the window loads, closes, or resizes so your app can react to these state changes.
  • Desktop Application Frameworks - Builds desktop GUIs using web technologies for Python backends.
  • GUI Development - Native wrapper for webview components.
  • GUI Frameworks - Lightweight wrapper for native web-view components.

Star 历史

r0x0r/pywebview 的 Star 历史图表r0x0r/pywebview 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

r0x0r/pywebview 是做什么的?

pywebview is a cross-platform desktop GUI framework for Python that renders HTML, CSS, and JavaScript content using the operating system's native web rendering engine. It enables developers to build desktop applications that run on Windows, macOS, and Linux from a single Python codebase, with the web frontend displayed in a lightweight, native window.

r0x0r/pywebview 的主要功能有哪些?

r0x0r/pywebview 的主要功能包括:Cross-Platform Desktop Toolkits, Webview Content Renderers, Embedded Webview Servers, Python-JavaScript Bridges, Web-Technology Desktop GUIs, Native HTML Rendering Engines, Webview-Based Frameworks, Python DOM Manipulators。

r0x0r/pywebview 有哪些开源替代品?

r0x0r/pywebview 的开源替代品包括: therecipe/qt — This project provides a framework for building native graphical user interfaces that run consistently across desktop… python-eel/eel — Eel is a Python HTML GUI framework designed for building desktop applications that utilize a Python backend and an… lxn/walk — Walk is a comprehensive framework for building native Windows desktop applications. It functions as a GUI library and… andlabs/ui — This project is a cross-platform UI framework and native desktop GUI library. It provides a unified set of… pysimplegui/pysimplegui — PySimpleGUI is a Python framework used to build graphical user interfaces. It functions as an adapter-based wrapper… fyne-io/fyne — Fyne is a cross-platform graphical user interface toolkit for the Go programming language. It provides a comprehensive…

Pywebview 的开源替代方案

相似的开源项目,按与 Pywebview 的功能重合度排序。
  • therecipe/qttherecipe 的头像

    therecipe/qt

    10,784在 GitHub 上查看↗

    This project provides a framework for building native graphical user interfaces that run consistently across desktop and mobile operating systems. It functions as a bridge that allows developers to construct complex application layouts and render high-performance visual elements by utilizing a native C++ widget toolkit. The framework enables the creation of responsive user interfaces through both traditional widget-based components and declarative markup languages. It employs a decoupled messaging system to connect interface components and uses a pre-compilation step to manage object introspe

    Goandroidasteroidoscross-platform-gui
    在 GitHub 上查看↗10,784
  • python-eel/eelpython-eel 的头像

    python-eel/Eel

    6,747在 GitHub 上查看↗

    Eel is a Python HTML GUI framework designed for building desktop applications that utilize a Python backend and an HTML and JavaScript frontend. It functions as a local web server wrapper that hosts application assets and manages the browser window to provide a user interface. The framework provides a bidirectional Python-JavaScript bridge, allowing functions in either language to call each other in real time. It also includes a desktop application bundler to package Python code and web assets into a standalone executable for distribution. The system covers application window management, loc

    Pythonhacktoberfest
    在 GitHub 上查看↗6,747
  • lxn/walklxn 的头像

    lxn/walk

    7,063在 GitHub 上查看↗

    Walk is a comprehensive framework for building native Windows desktop applications. It functions as a GUI library and Windows API wrapper, providing a toolkit of native widgets and a declarative layout system for developing high-performance user interfaces. The project is distinguished by its data-binding framework, which uses reflection and string-based property paths to synchronize data sources with interface widgets. It also provides specialized support for high-DPI interface scaling and an optimized native message loop to reduce runtime overhead. The toolkit covers a wide range of capabi

    Godeclarativedeclarative-uigo
    在 GitHub 上查看↗7,063
  • andlabs/uiandlabs 的头像

    andlabs/ui

    8,357在 GitHub 上查看↗

    This project is a cross-platform UI framework and native desktop GUI library. It provides a unified set of instructions to render native windows, forms, and layouts across different operating systems by mapping high-level instructions to the native widgets and controls of the host environment. The toolkit includes a vector graphics engine for rendering custom shapes, gradients, and high-density images using brushes and matrices. It also serves as a native dialog provider for system-level operations such as file path selection and message box alerts. The library covers a broad range of GUI co

    Go
    在 GitHub 上查看↗8,357
查看 Pywebview 的所有 30 个替代方案→