Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pkg_tui-0.0.1-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

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

Hashes for pkg_tui-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ec740b9c2376be14de911377a2273721cf471eb3caf35df46f18cf5da8110348
MD5 9916393434ec989dfeddcbc7a50a2757
BLAKE2b-256 bc419fedc0883985a593f2975c547bb375eb04ebdcb2df2b1a80e7c20c3de5b6

See more details on using hashes here.

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

Hashes for pkg_tui-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 faf0de2ccd020f0daf0fec60aeda976157c627ef5f8d353a88b82ef2518ec4aa
MD5 cd5e2453311e1d1db0089984bfd1f0b6
BLAKE2b-256 1cd4b88b60d34505a852c8548116f518e9cdf7a050b5e4bcebeb09b3c43026e1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page