Universal Python-first UI framework — one Screen-Stage-Sprite paradigm compiles to Web, desktop, mobile, TUI, and GUI, with a universal escape layer guaranteeing capability parity with any framework.
Project description
EchoUI — Universal Python-first UI framework
One Screen–Stage–Sprite paradigm compiles to Web, desktop, mobile, TUI, and GUI.
Version: 1.0.0 · License: MIT · PyPI: pip install echoui · GitHub: nichengfuben/echoui
像 npm 一样用
| npm | EchoUI |
|---|---|
npm install -g vite |
pip install echoui[web] |
npm create vite@latest my-app |
echoui new my-app |
npm run build |
echoui build --target web |
npm run dev |
echoui dev --port 8765 |
pip install echoui[web]
echoui new my-app
cd my-app
pip install -e . # 安装项目依赖(含 echoui)
echoui build --target web
echoui dev --port 8765
PyPI 尚未发布 1.0.0 时,可从 GitHub 安装:
pip install "echoui[web] @ git+https://github.com/nichengfuben/echoui.git"
Quick Start(已有 main.py)
from echoui import App, Screen, Store, col, text, button
class CounterStore(Store):
count: int = 0
store = CounterStore()
class Counter(Screen):
def build(self):
return col(
text(lambda: f"Count: {store.count}"),
button("+1", on_click=lambda: setattr(store, "count", store.count + 1)),
)
app = App(screens=[Counter], initial="Counter")
echoui build --target web
echoui dev --port 8765
CLI
| Command | Description |
|---|---|
echoui new [name] |
脚手架(main.py + pyproject.toml) |
echoui dev |
开发服务器(watch + 静态服务) |
echoui build --target web|static|tui|desktop|gui|android|ios |
编译 |
echoui preview |
预览已 build 的 dist |
echoui check |
校验项目 |
echoui version |
版本 |
示例
examples/ 含 hello、counter、跑酷 06_runner、全功能 dashboard 07_full_web 等。
License
MIT — see 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 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 echoui-1.2.5.tar.gz.
File metadata
- Download URL: echoui-1.2.5.tar.gz
- Upload date:
- Size: 116.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9dbd77368f4bc403d6bdd2d3eeda3f2a91dfe2ab886754714c67cba8d98dfd80
|
|
| MD5 |
eb6b14c128c7b7b2cbada770145cc2c1
|
|
| BLAKE2b-256 |
2b3e54b17022c11a6b7582c3175dccae7caf42074d280c1ee692243574dc4dbf
|
File details
Details for the file echoui-1.2.5-py3-none-any.whl.
File metadata
- Download URL: echoui-1.2.5-py3-none-any.whl
- Upload date:
- Size: 105.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9b65b1d029cab642b40f15662394b4caa09eb65c8b75dcae3727668b244f111
|
|
| MD5 |
95bd661576402ab4911c5f32868bcd75
|
|
| BLAKE2b-256 |
c0ffff5d2a2abcb028df1e913e80af22128721c28a6914b733b3bb1c2dbffa3f
|