Skip to main content

allin-toolkit

一组薄开发者工具的统一入口。装一次,九个工具都在。

pip install allin-toolkit
toolkit --list              # 看有哪些工具
toolkit calculator          # 启动计算器
toolkit renamer             # 批量重命名

为什么打包成一个而不是九个包

这九个工具各自只为一件小事存在。分别注册九个 console_script (allin-calculator、allin-renamer…)会让 PATH 里塞满名字,装进同一个 venv 时与他人重名的风险也陡增。合成一个 toolkit <子命令>,命名空间干净。

必须知道的两件事

一、CLI 工具(4 个,无头可用)

2026-11-24 起,有独立核心逻辑的四个工具改为 CLI 一等公民,不再依赖 tkinter:

toolkit renamer  ./photos 'IMG_(\d+)' 'PIC_' --recursive          # 预览
toolkit renamer  ./photos 'IMG_(\d+)' 'PIC_' --recursive --apply  # 执行
toolkit subtitle info a.srt
toolkit subtitle shift a.srt 1.5 --out b.srt     # 时间轴整体 +1.5s
toolkit subtitle to-txt a.srt
toolkit calculator "1+2*3"
toolkit calculator                                # REPL
toolkit yasuo compress big.log                    # → big.log.zlib
toolkit yasuo decompress big.log.zlib

约定统一:破坏性操作默认 dry-run,要 --apply 或显式 --out 才写盘;--json 给机读结果。

二、GUI 工具(5 个,仍需桌面)

这五个的本质是交互,硬包一层 CLI 只会产出残废命令,所以保留 tkinter 界面:

工具 为什么 CLI 化不划算
print 拼音输入法,核心是实时按键捕获与候选上屏
auto_clicker 键鼠自动化,需要实时拾取屏幕坐标
captcha-demo 交互式验证码演示(点击/拖拽/语音),本身就是"考人"
fonts 字体下载浏览器,需要在界面里挑源、预览字形
pdf 阅读器,核心是渲染与翻页

它们能 toolkit --list,但启动需要桌面环境。

二、参数透传

toolkit <工具> [参数...] 会把参数原样交给该工具,等价于原来的 python main.py [参数...]。要看某个工具自己支持什么,用 toolkit <工具> --help (若该工具实现了 --help)。

源码在哪

源码只有一份,在 dev-toolkit 仓的对应子目录里。 本包通过 package-dir 直接映射这些目录,不做复制 —— 派生副本手抄必漂。

因此:不要在本包内改代码。要改去 dev-toolkit 仓,然后发新版本。

许可

MIT-0(与 dev-toolkit 仓一致)。

Metadata

Release files for allin-toolkit 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for allin-toolkit 0.2.0
File Size Uploaded Provenance Actions
allin_toolkit-0.2.0.tar.gz 169.4 kB Without provenance Details for allin_toolkit-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for allin-toolkit 0.2.0
File Interpreter ABI Platform Actions
allin_toolkit-0.2.0-py3-none-any.whl Python 3 none any Details for allin_toolkit-0.2.0-py3-none-any.whl

Total release size: 378.0 kB

Release files / allin_toolkit-0.2.0.tar.gz

Download URL allin_toolkit-0.2.0.tar.gz
Size 169.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9e40dcb712df455414af0e8d347421894641d2c4a6e2b7dde44f934af95821fb
BLAKE2b-256 checksum
How to use checksums
2a23b2f7595ce50482900c78a307128b515eac9051aa97448a3a4afe0c4f50d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / allin_toolkit-0.2.0-py3-none-any.whl

Download URL allin_toolkit-0.2.0-py3-none-any.whl
Size 208.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ffdd7603fe91602cd2a9b7bf779943ba2d7578bfae7ac1f3cc288fcbca7d9bb
BLAKE2b-256 checksum
How to use checksums
5b01cad55be2317744b867ae457e65e1511245774e03a20abab8a8d8c3836757
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for allin-toolkit 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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