Skip to content

VerdantE1/PyMagicBox

Repository files navigation

PyMagicBox ✨

🧰 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 .


PyMagicBox ✨

🧰 A growing toolkit of practical Python utilities for Windows, designed to boost productivity in automation, clipboard operations, scripting, code analysis, AI assistance, and more.


🇺🇸 Project Overview

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

🖥️ Requirements

  • 🪟 OS: Windows 10/11
  • 🐍 Python: 3.8+ (on PATH)
  • 📦 Dependency: pyperclip
  • 💾 Recommended dir: C:\myscripts (configurable)

Install:

pip install pyperclip

🛠️ Main Scripts & Features

  • ⚙️ 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 .bat wrappers for Python scripts, copy to target dir, and optionally add to user PATH.


🚀 Usage Examples

python init2Windows.py .
python bulletPointAdder.py
python mClip.py codepy
python analysis/code_analysis.py lines .

📄 License

MIT License. See LICENSE.txt.


---

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published