Python SDK for JadeView - Create desktop applications with WebView
Project description
JadeUI
Python SDK for JadeView - 使用 Web 技术构建桌面应用
JadeUI 是 JadeView 的 Python SDK,让你可以使用 Python + Web 技术构建现代桌面应用程序。
特性
- WebView 窗口 - 使用 HTML/CSS/JS 构建 UI
- 现代外观 - 支持 Windows 11 Mica/Acrylic 效果
- 主题切换 - Light/Dark/System 主题
- IPC 通信 - Python 与前端双向通信
- 打包体积 - 极小的依赖,打包后体积仅有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 |
|---|---|---|
| Router | Custom Template | Vue App |
|---|---|---|
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
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 Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jadeui-0.1.7.tar.gz.
File metadata
- Download URL: jadeui-0.1.7.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eec8d18dd0efe0dff38e43bc519f8425a0b053ccf22cfc52cd62e7ef89677f9
|
|
| MD5 |
039852d6156f29f8bd6a3f68cef00ed1
|
|
| BLAKE2b-256 |
89ada89c1edb271e70c3a064a8377719ca8a3b66cee2923000a380ee45a18ac5
|
Provenance
The following attestation bundles were made for jadeui-0.1.7.tar.gz:
Publisher:
publish.yml on HG-ha/Jadeui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jadeui-0.1.7.tar.gz -
Subject digest:
7eec8d18dd0efe0dff38e43bc519f8425a0b053ccf22cfc52cd62e7ef89677f9 - Sigstore transparency entry: 813220544
- Sigstore integration time:
-
Permalink:
HG-ha/Jadeui@0daf5e474c0de840dcdeef37792a55c10f9a7c35 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/HG-ha
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0daf5e474c0de840dcdeef37792a55c10f9a7c35 -
Trigger Event:
push
-
Statement type:
File details
Details for the file jadeui-0.1.7-py3-none-win_arm64.whl.
File metadata
- Download URL: jadeui-0.1.7-py3-none-win_arm64.whl
- Upload date:
- Size: 3.9 MB
- Tags: Python 3, Windows ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd7a10e6498a0bc3b87e9c6d4e39b7ef3eb2dad060096ede4fdc1304c89902dc
|
|
| MD5 |
08bdcd21a7cc680244b415bb29a88a58
|
|
| BLAKE2b-256 |
8d8a431e77364029f9eb49337bd5f55c09b6c7fc47a3b3c830c01b1c740a8f03
|
Provenance
The following attestation bundles were made for jadeui-0.1.7-py3-none-win_arm64.whl:
Publisher:
publish.yml on HG-ha/Jadeui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jadeui-0.1.7-py3-none-win_arm64.whl -
Subject digest:
bd7a10e6498a0bc3b87e9c6d4e39b7ef3eb2dad060096ede4fdc1304c89902dc - Sigstore transparency entry: 813220546
- Sigstore integration time:
-
Permalink:
HG-ha/Jadeui@0daf5e474c0de840dcdeef37792a55c10f9a7c35 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/HG-ha
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0daf5e474c0de840dcdeef37792a55c10f9a7c35 -
Trigger Event:
push
-
Statement type:
File details
Details for the file jadeui-0.1.7-py3-none-win_amd64.whl.
File metadata
- Download URL: jadeui-0.1.7-py3-none-win_amd64.whl
- Upload date:
- Size: 4.1 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c80db2242df1554503019338fb498def26562b8b3d9f91d2518aa42c3e4a5af
|
|
| MD5 |
69d34af179a431d7499cdc0fb594c504
|
|
| BLAKE2b-256 |
bb4fc389ecaec066b7c12f20fe33d22a9a4bc864e4611c52ba8e80cf54eb1308
|
Provenance
The following attestation bundles were made for jadeui-0.1.7-py3-none-win_amd64.whl:
Publisher:
publish.yml on HG-ha/Jadeui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jadeui-0.1.7-py3-none-win_amd64.whl -
Subject digest:
7c80db2242df1554503019338fb498def26562b8b3d9f91d2518aa42c3e4a5af - Sigstore transparency entry: 813220545
- Sigstore integration time:
-
Permalink:
HG-ha/Jadeui@0daf5e474c0de840dcdeef37792a55c10f9a7c35 -
Branch / Tag:
refs/tags/v0.1.7 - Owner: https://github.com/HG-ha
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0daf5e474c0de840dcdeef37792a55c10f9a7c35 -
Trigger Event:
push
-
Statement type: