QGUI - 0.1MB超轻量Python GUI框架,用模板来快捷制作深度学习模型推理界面
Project description
QGUI
QGUI - 低于100k的超轻量桌面图形化框架,可通过几行代码、使用模板来快捷制作出属于你的图形化界面
由于精力有限,若该项目Star数量超过100,则会优先考虑更新GUI,目前更新暂时以基座QPT为主
EAP - Easy access program
当前版本为概念版本,如有需求或建议可在issue中提出。
相关案例
| 项目名 | 项目描述 | GUI源码 |
|---|---|---|
| 完整案例 | QGUI的全部基础组件组成的案例 | GUI源码 |
| 油画带师 | 基于飞桨PaddlePaddle的风格迁移工具,可将图片、视频转化为油画风格,支持GPU转换 | GUI源码 |
| QWebsite | 为GitHub浏览与Clone提供加速能力,且非科学上网 | GUI源码 |
| 人像扣图 | 基于PaddleHub的人像扣图小工具 | GUI源码 |
| 音乐分离 | 基于music_source_separation的人声伴奏分离GUI | GUI源码 |
快速上手
安装QGUI
-
通用方式
python -m pip install qgui -
国内推荐
python -m pip install qgui -i https://mirrors.bfsu.edu.cn/pypi/web/simple -
运行Demo/安装测试
python -m qgui
代码示例/模板
简单示例
from qgui import CreateQGUI
from qgui.banner_tools import BaseBarTool, GitHub
from qgui.notebook_tools import ChooseFileTextButton, RunButton
def click(args):
print("你点到我啦~")
print("输入框文字为:", args["文件选择"].get())
# 创建主界面
main_gui = CreateQGUI(title="一个新应用")
# 在界面最上方添加一个按钮,链接到GitHub主页
main_gui.add_banner_tool(GitHub("https://github.com/QPT-Family/QGUI"))
# 要不试试自定义Banner按钮?
main_gui.add_banner_tool(BaseBarTool(click, name="一个新组件"))
# 在主界面部分添加一个文件选择工具吧~
main_gui.add_notebook_tool(ChooseFileTextButton(name="文件选择"))
# 要不要再添加一个运行按钮?,绑定刚刚创建的函数吧~
main_gui.add_notebook_tool(RunButton(click))
# 简单加个简介
main_gui.set_navigation_about(author="GT",
version="0.0.1",
github_url="https://github.com/QPT-Family/QGUI",
other_info=["欢迎加入QPT!"])
# 跑起来~
main_gui.run()
组件文档
目前组件还在逐步完善,随后就提供目录啦,可以先康一下完整案例
进阶教程和完整组件文档暂时还没有,先委屈一下看看源码吧~
上方Banner工具
左侧Navigation工具:main_gui.set_navigation_about() and main_gui.set_navigation_info()
中央Notebook工具
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 Distribution
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 QGUI-0.6.3.tar.gz.
File metadata
- Download URL: QGUI-0.6.3.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bf26101242b99d16ed0d7082f59df26fd7e5a54b23099f0c7dfb54893934a8d
|
|
| MD5 |
e93635c7f75106ebf0455164f50a47e8
|
|
| BLAKE2b-256 |
1b80ca92e47bae57888e500bc58e7c182b9d12a8a8db2a3bdd0aa4c92aef3878
|
File details
Details for the file QGUI-0.6.3-py3-none-any.whl.
File metadata
- Download URL: QGUI-0.6.3-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cfdf217b901b04c39c09ad524ddcf2fb70991e3203f588f160668b2e0af61d77
|
|
| MD5 |
3abb4da8016a1ecf1c9a80541e53fa45
|
|
| BLAKE2b-256 |
cbf6a1b6332888ef217dd2c3b5b93a39de6336336dd45eb85ced048913ffb88f
|