ulite.py
- 轻量化ui框架
- 支持构建基于flask的webui
安装
git clone https://gitee.com/zlols/ulite.py
pip install -e ulite.py
用法
import ulite
import random
ui = ulite.createUI(backends='flask', port=5001)
ui.root.addChild(
ulite.Button(text='hello').subscribeEvent('click', lambda e: e.target.setAttributes(text=random.randint(0,100)))
)
ui.show(openbrowser=True)
小贴士
- 使用nuitka打包时需要添加静态文件打包参数
--include-package-data=ulite
Release files for ulite 2.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ulite-2.2.0.tar.gz | 402.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ulite-2.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 807.7 kB
Release files / ulite-2.2.0.tar.gz
| Download URL | ulite-2.2.0.tar.gz |
|---|---|
| Size | 402.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
91166ab2d6c9fbc55e60f1fa2af86351929a1a7abef2cb39bb20622ca3ff76c8
|
|
BLAKE2b-256 checksum How to use checksums |
a5654934aebebb051aa5db6bf076bd6414f105a90c4ba02d0ef486aeea8a9181
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / ulite-2.2.0-py3-none-any.whl
| Download URL | ulite-2.2.0-py3-none-any.whl |
|---|---|
| Size | 405.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70143707474ceab1ed41fdbde60c3b9268303edab9ccb9b63ff4974d739baf89
|
|
BLAKE2b-256 checksum How to use checksums |
8bc643e9f53a695aca415a94661e2cd500e4dc66b8be3a61810dd738b3b6e5bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|