Turn your python functions into GUI-based applications just in a few lines of code.
Project description
PyGUIAdapterLite
0. 一些背景
PyGUIAdapterLite是我另一个开源项目PyGUIAdapter的Lite版本,
在保持基本功能一致的情况下,聚焦于“轻量化”这一目标。因此,它去除了PyGUIAdapter中最重量级的外部依赖——Qt,
使用了更轻量级的tkinter作为GUI后端。
使用tkinter最大的好处是, 它是Python的标准GUI库,绝大多数情况下随Python一起安装,不需要任何额外的步骤,这也意味着基本上也无需考虑它与python的兼容性
以及跨平台的问题。
部分Linux发行版预装的Python版本可能没有包含tkinter, 此时需要手动安装,但这非常简单,以Ubuntu-based发行版为例,可以运行类似以下命令来安装tkinter:
sudo apt-get install python3-tk
另外,tkinter非常轻量,无论是生成的可执行文件体积还是运行时的内存占用,相比于Qt(无论是PyQt还是PySide),都要小很多。
tkinter另一个潜在的优势不是技术上的,而是法律层面的,相比Qt的几个Python binding, tkinter有着更加宽松的许可证。
当然,tkinter相比也有其劣势,
1. 安装
PyGUIAdapterLite的wheel包已经发布到PyPI上,可以直接通过pip安装:
> pip install PyGUIAdapterLite
如果要体验最新功能,可以从GitHub上clone整个项目,然后自行构建:
PyGUIAdapterLite使用了poetry作为项目管理和构建工具,因此需要先安装poetry。
> git clone https://github.com/zimolab/PyGUIAdapterLite.git
> cd PyGUIAdapterLite/
> poetry install
> poetry build
第三方库许可
本项目使用了以下优秀的开源库:
-
IconPark
- 用途:使用了IconPark部分图标,版权归IconPark所有。
- 许可:Apache License 2.0
- 许可证文件:
licenses/IconPark-LICENSE.txt - 项目地址:https://github.com/bytedance/IconPark
-
tomlkit
- 用途:解析和生成TOML格式的配置文件。
- 许可:MIT License
- 许可证文件:
licenses/tomlkit-LICENSE.txt - 项目地址:https://github.com/python-poetry/tomlkit/
-
docstring_parser
- 用途:解析Python文件的docstring。
- 许可:MIT License
- 许可证文件:
licenses/docstring_parser-LICENSE.md - 项目地址:https://github.com/rr-/docstring_parser
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 pyguiadapterlite-0.2.0.tar.gz.
File metadata
- Download URL: pyguiadapterlite-0.2.0.tar.gz
- Upload date:
- Size: 76.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.2 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f53c10195479b3b470040af49a31f8cc33cfe92e76cea31daa139a257621f72
|
|
| MD5 |
109396d8a28712b73609644231bc36ae
|
|
| BLAKE2b-256 |
cd9ed4afa472d8af6f47b49ac66cbb916f0e6d12c6355713993268dac3784773
|
File details
Details for the file pyguiadapterlite-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pyguiadapterlite-0.2.0-py3-none-any.whl
- Upload date:
- Size: 114.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.2 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d69993a53863b49a347b4af9458755bab1c86713861bd728d8d9652c880950f
|
|
| MD5 |
960f3b4875d55be4924321b71fd9197f
|
|
| BLAKE2b-256 |
1ddeb5303a8bd4c6588d345fa3eadf004fd8fded055c91ed80cf75cc79a38cd1
|