🧰 A growing toolkit of practical Python utilities for Windows, designed to boost productivity in automation, clipboard operations, scripting, code analysis, AI assistance, and more.
PyMagicBox 集成了多种实用脚本,助你高效完成日常任务:
- 📋 剪贴板批量处理与模板复制
- ⚡ Windows 脚本一键 .bat 包装并加 PATH
- 🧑💻 C/C++ 代码/注释/空行统计与 TODO 提取
- 🪟 操作系统:Windows 10/11
- 🐍 Python:3.8 及以上(需已加入 PATH)
- 📦 依赖库:
pyperclip - 💾 推荐目录:
C:\myscripts(可自定义)
依赖安装:
pip install pyperclip-
⚙️ cmd/adminCMD.py
当前目录一键以管理员身份打开 CMD。 -
✨ bulletPointAdder.py
剪贴板多行文本前加 “* ”,快速转为 Markdown 列表。 -
💡 mClip.py
按关键词把常用 GPT 中文提示词片段复制到剪贴板。 -
📊 analysis/code_analysis.py
统计 C/C++ 代码/注释/空行、提取 TODO/FIXME,可命令行或作为库调用。 -
🏗️ init2Windows.py
自动为 Python 脚本生成.bat,复制到目标目录,并可一键将目标目录加入用户 PATH。
python init2Windows.py .
python bulletPointAdder.py
python mClip.py codepy
python analysis/code_analysis.py lines .🧰 A growing toolkit of practical Python utilities for Windows, designed to boost productivity in automation, clipboard operations, scripting, code analysis, AI assistance, and more.
PyMagicBox accelerates daily workflow with handy scripts:
- 📋 Bulk clipboard tools & prompt templates
- ⚡ Batch file generation and PATH management for scripts
- 🧑💻 C/C++ code/statistics and TODO extraction
- 🪟 OS: Windows 10/11
- 🐍 Python: 3.8+ (on PATH)
- 📦 Dependency:
pyperclip - 💾 Recommended dir:
C:\myscripts(configurable)
Install:
pip install pyperclip-
⚙️ adminCMD.py
Open an Administrator CMD in the current directory. -
✨ bulletPointAdder.py
Add*to the start of each clipboard line for Markdown lists. -
💡 mClip.py
Copy predefined Chinese GPT prompt snippets to clipboard by keyword. -
📊 code_analysis.py
Count code/comment/blank lines and extract TODO/FIXME from C/C++ code;- code_analysis [line|todo]
-
🏗️ init2Windows.py
Generate.batwrappers for Python scripts, copy to target dir, and optionally add to user PATH.
python init2Windows.py .
python bulletPointAdder.py
python mClip.py codepy
python analysis/code_analysis.py lines .MIT License. See LICENSE.txt.
---