Skip to main content

Python SDK for JadeView - Create desktop applications with WebView

Project description

JadeUI Logo

JadeUI

Python SDK for JadeView - 使用 Web 技术构建桌面应用

PyPI version Python versions


JadeUI 是 JadeView 的 Python SDK,让你可以使用 Python + Web 技术构建现代桌面应用程序。

特性

  • WebView 窗口 - 使用 HTML/CSS/JS 构建 UI
  • 现代外观 - 支持 Windows 11 Mica/Acrylic 效果
  • 主题切换 - Light/Dark/System 主题
  • IPC 通信 - Python 与前端双向通信
  • 对话框 API - 文件选择、消息框 (v1.3.0+)
  • 通知 API - Windows 原生桌面通知 (v1.3.0+)
  • 打包体积 - 极小的依赖,打包后体积仅有8MB左右

安装

pip install jadeui

快速开始

最简模式

from jadeui import Window

Window(title="Hello JadeUI", url="https://example.com").run()

本地应用(自动检测 web 目录)

from jadeui import Window

Window(title="My App").run()  # 自动加载 web/index.html

完整模式(多窗口、全局事件)

from jadeui import JadeUIApp, Window

app = JadeUIApp()

@app.on_ready
def on_ready():
    Window(title="Window 1", url="https://example.com").show()
    Window(title="Window 2", url="https://google.com").show()

app.run()

示例项目

查看 examples 目录获取完整示例:

示例 说明
simple 最简示例 - 几行代码创建应用
calculator 基础计算器,展示窗口创建和 IPC 通信
backdrop_demo Windows 11 Mica/Acrylic 背景效果
router_demo 内置路由系统实现多页面应用
custom_template 自定义 HTML 模板和样式
vue_app Vue.js + JadeUI 集成示例

效果预览

Simple Calculator Backdrop
Simple Calculator Backdrop
Router Custom Template Vue App
Router Custom Vue

API 文档

完整文档请访问: https://jade.run/python-sdk

打包发布

使用 Nuitka 将应用打包成独立的可执行文件:

# 安装开发依赖
pip install jadeui[dev]

# 打包为单个exe应用
python scripts/build.py your_app.py -o your_app

系统要求

  • 操作系统: Windows 10/11
  • Python: 3.7+

许可证

MIT License

链接

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

jadeui-1.3.0.tar.gz (54.3 kB view details)

Uploaded Source

Built Distributions

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

jadeui-1.3.0-py3-none-win_arm64.whl (1.8 MB view details)

Uploaded Python 3Windows ARM64

jadeui-1.3.0-py3-none-win_amd64.whl (1.9 MB view details)

Uploaded Python 3Windows x86-64

File details

Details for the file jadeui-1.3.0.tar.gz.

File metadata

  • Download URL: jadeui-1.3.0.tar.gz
  • Upload date:
  • Size: 54.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jadeui-1.3.0.tar.gz
Algorithm Hash digest
SHA256 4662da6b52b3ceb8c11312adeb20cea9db0e88a86f8dcf18580626c00057d6f8
MD5 cf098e3d0a8fbf9a52e4c995c7375959
BLAKE2b-256 c7549d9ab797692f49195f1f285d844dcb4735dc6f3bd8edd8d70ab4abc51a2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for jadeui-1.3.0.tar.gz:

Publisher: publish.yml on HG-ha/Jadeui

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

File details

Details for the file jadeui-1.3.0-py3-none-win_arm64.whl.

File metadata

  • Download URL: jadeui-1.3.0-py3-none-win_arm64.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jadeui-1.3.0-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 0af6e74a8a63006ec149225e11761a7471e5d0c9602ec9c53aa73809f2f3318c
MD5 6e904a147776ce7f91d72a7fca752962
BLAKE2b-256 68a72cf3e1d6fe8dff0656f2fcf480a1cde3ad3548cb77b951f126066b205a30

See more details on using hashes here.

Provenance

The following attestation bundles were made for jadeui-1.3.0-py3-none-win_arm64.whl:

Publisher: publish.yml on HG-ha/Jadeui

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

File details

Details for the file jadeui-1.3.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: jadeui-1.3.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jadeui-1.3.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 535b306441f7eaedb91d1cfd1a8eb422b3ac68f65d306b793ec295cd89500a77
MD5 406da589a66986829b5bfecedac91985
BLAKE2b-256 e41c0c0ab9e8ade83a94770d05fdfeeb19cb786812c1f5e69c3ec91c5c777961

See more details on using hashes here.

Provenance

The following attestation bundles were made for jadeui-1.3.0-py3-none-win_amd64.whl:

Publisher: publish.yml on HG-ha/Jadeui

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page