pkg-tui
一个用于管理本地包管理器的 Textual TUI 工具。
功能
- 列出已安装的全局包
- 查看可更新的包
- 选中一个或多个包进行批量更新
- 搜索包
- 卸载包
- 查看包详情
架构
pkg_tui/
├── models.py # 跨管理器通用的数据模型
├── managers/
│ ├── base.py # PackageManager 抽象基类 + 注册表
│ ├── npm.py # npm 后端实现
│ └── __init__.py # 自动注册所有管理器
├── screens/
│ ├── detail_screen.py # 包详情模态框
│ └── confirm_screen.py # 确认对话框
├── app.py # 主 TUI 应用
└── app.tcss # 样式
后端通过 PackageManager 抽象接口与 TUI 解耦,
新增包管理器只需实现该接口并通过 @register_manager 注册。
使用
pkg
# 或
python -m pkg_tui
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pkg_tui-0.0.1.tar.gz
(29.4 kB
view details)
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
pkg_tui-0.0.1-py3-none-any.whl
(39.8 kB
view details)
File details
Details for the file pkg_tui-0.0.1.tar.gz.
File metadata
- Download URL: pkg_tui-0.0.1.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec740b9c2376be14de911377a2273721cf471eb3caf35df46f18cf5da8110348
|
|
| MD5 |
9916393434ec989dfeddcbc7a50a2757
|
|
| BLAKE2b-256 |
bc419fedc0883985a593f2975c547bb375eb04ebdcb2df2b1a80e7c20c3de5b6
|
File details
Details for the file pkg_tui-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pkg_tui-0.0.1-py3-none-any.whl
- Upload date:
- Size: 39.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faf0de2ccd020f0daf0fec60aeda976157c627ef5f8d353a88b82ef2518ec4aa
|
|
| MD5 |
cd5e2453311e1d1db0089984bfd1f0b6
|
|
| BLAKE2b-256 |
1cd4b88b60d34505a852c8548116f518e9cdf7a050b5e4bcebeb09b3c43026e1
|