{"id":22775180,"url":"https://github.com/viper373/magicktools","last_synced_at":"2026-06-29T07:31:12.662Z","repository":{"id":257754348,"uuid":"857319644","full_name":"Viper373/MagickTools","owner":"Viper373","description":"一个Flask搭建的自用工具类丨API","archived":false,"fork":false,"pushed_at":"2024-09-27T09:39:01.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T13:14:34.668Z","etag":null,"topics":["api","convert","flask","magick","python","tools"],"latest_commit_sha":null,"homepage":"https://tools.viper3.top/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Viper373.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-14T10:40:29.000Z","updated_at":"2024-09-30T11:42:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffd28843-7e22-4da7-8209-046370dd3b36","html_url":"https://github.com/Viper373/MagickTools","commit_stats":null,"previous_names":["viper373/magicktools"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Viper373/MagickTools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viper373%2FMagickTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viper373%2FMagickTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viper373%2FMagickTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viper373%2FMagickTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Viper373","download_url":"https://codeload.github.com/Viper373/MagickTools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viper373%2FMagickTools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260249959,"owners_count":22980763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","convert","flask","magick","python","tools"],"created_at":"2024-12-11T18:26:18.881Z","updated_at":"2025-06-16T22:05:59.913Z","avatar_url":"https://github.com/Viper373.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MagicTools 🧰✨\n\n一个自用工具类丨API\n\nMagicTools 是一个由 Python 实现的实用工具集合，旨在简化日常工作流程，提升效率。每个工具都专注于特定的任务，如文件格式转换、批量处理等，利用 Python 的强大功能和丰富的库，为用户提供便捷的解决方案。\n\n## 特性 ✨\n\n- **多种实用工具**：包含 PDF 转 Word、目录压缩、PNG 转 ICO、TTF 转 WOFF、TXT 文件合并、`curl` 命令转换、IP 地址批量查询、SVG 编辑等多种工具。\n- **批量处理支持**：大多数工具支持批量处理，节省时间和精力。\n- **美观的进度显示**：使用 Rich 库实时显示进度条和状态更新。\n- **灵活的配置**：通过配置文件设置输入、输出目录和其他参数。\n- **可扩展性**：易于添加新的工具或功能，满足个性化需求。\n\n## 包含的工具 🛠️\n\n- **`curl2code`**：将 `curl` 命令转换为多种编程语言的代码，支持 Python、Java、Rust、Ruby 等。\n- **`ip2multi`**：批量查询 `IP` 地址的地理位置信息，多线程支持，提高查询效率。\n- **`svg1edit`**：简单的 `SVG` 文件编辑工具，支持批量处理和基本的图形操作。\n- **`pdf2word`**：批量将 `PDF` 文件转换为 `Word` 文档。\n- **`dir2zip`**：批量压缩目录为 `ZIP` 等格式。\n- **`png2ico`**：批量将 `PNG` 图片转换为 `ICO` 图标文件。\n- **`ttf2woff`**：批量将 `TTF` 字体文件转换为 `WOFF` 和 `WOFF2` 格式。\n- **`txts2txt`**：批量合并 `TXT` 文件。\n\n## 目录结构 📁\n\n- `curl2code/`：包含 `curl2code` 工具的目录。\n- `dir2zip/`：包含 `dir2zip` 工具的目录。\n- `ip2multi/`：包含 `ip2multi` 工具的目录。\n- `pdf2word/`：包含 `pdf2word` 工具的目录。\n- `png2ico/`：包含 `png2ico` 工具的目录。\n- `svg1edit/`：包含 `svg1edit` 工具的目录。\n- `ttf2woff/`：包含 `ttf2woff` 工具的目录。\n- `txts2txt/`：包含 `txts2txt` 工具的目录。\n- `LICENSE`：许可证文件。\n\n## 环境要求 🛠️\n\n- **Python 版本**：**`\u003e= 3.12.1`**\n\n## 使用方法 📦（推荐使用虚拟环境）\n\n1. **克隆或下载项目**\n\n    ```bash\n    git clone https://github.com/Viper373/MagickTools.git\n    cd MagickTools\n    ```\n\n2. **创建并激活虚拟环境**\n\n    ```bash\n    python -m venv venv\n    # Windows\n    venv\\Scripts\\activate\n    # macOS/Linux\n    source venv/bin/activate\n    ```\n\n3. **安装依赖**\n\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n## TODO 📝\n\n- **抛弃原生 HTML 和 CSS，前端使用 `Vue` 重构**：计划使用 `Vue.js` 框架重写前端界面，以提高开发效率和用户体验。\n- **扩展 `curl2pro` 支持的编程语言**：添加对更多语言的支持，如 C#、PHP 等。\n- **完善 `svg1edit` 的功能**：增加更多的 SVG 编辑功能，提升用户体验。\n\n## 贡献指南 🤝\n\n欢迎任何形式的贡献！如果您有新的工具、功能或改进建议，欢迎提交 `Pull Request`。一起让 MagicTools 变得更加完善。\n\n## 反馈 🗣️\n\n您的反馈对我们非常重要。如果您在使用过程中遇到任何问题，或者有任何建议，请随时与我们联系。\n\n## 联系方式 📬\n\n如有任何问题或建议，欢迎联系作者：\n\n- **Email**: `2020311228@bipt.edu.cn`\n- **GitHub**: [`Viper373`](https://github.com/Viper373)\n\n## 许可证 📄\n\n本项目采用 MIT 许可证，详情请参阅 [LICENSE](LICENSE) 文件。\n\n---\n\n### 感谢使用 MagicTools！😊\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviper373%2Fmagicktools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviper373%2Fmagicktools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviper373%2Fmagicktools/lists"}