| 1 | # PPT Master Dependencies / PPT Master 依赖 |
| 2 | # ============================================= |
| 3 | # |
| 4 | # Most tools use only the Python standard library. Below are optional dependencies. |
| 5 | # 大部分工具仅使用 Python 标准库,以下为可选依赖。 |
| 6 | # |
| 7 | # Install / 安装方式: |
| 8 | # pip install -r requirements.txt |
| 9 | |
| 10 | # ───────────────────────────────────────────────────────────── |
| 11 | # SVG to PPTX tool / SVG 转 PPTX 工具 (skills/ppt-master/scripts/svg_to_pptx.py) |
| 12 | # ───────────────────────────────────────────────────────────── |
| 13 | # Batch-convert SVG files to PowerPoint presentations. |
| 14 | # 用于将 SVG 文件批量转换为 PowerPoint 演示文稿 |
| 15 | # Converts supported SVG elements to editable native DrawingML shapes. |
| 16 | # 将受支持的 SVG 元素转换为可编辑的原生 DrawingML 形状 |
| 17 | python-pptx>=0.6.21 |
| 18 | XlsxWriter>=3.0.0 |
| 19 | # PowerPoint-style Merge Shapes materialization / PowerPoint 风格合并形状物化 |
| 20 | skia-pathops>=0.9.2 |
| 21 | # OpenType shaping + glyph outlines for text operands / 文字 operand 的排版与轮廓 |
| 22 | uharfbuzz>=0.50.0 |
| 23 | |
| 24 | # Recorded narration / 录制计时和旁白 |
| 25 | # notes_to_audio.py generates per-slide narration audio on macOS/Linux/Windows. |
| 26 | # notes_to_audio.py 用于在 macOS/Linux/Windows 上生成逐页旁白音频。 |
| 27 | edge-tts>=7.2.8 |
| 28 | |
| 29 | # ───────────────────────────────────────────────────────────── |
| 30 | # PDF to Markdown tool / PDF 转 Markdown 工具 (skills/ppt-master/scripts/source_to_md/pdf_to_md.py) |
| 31 | # ───────────────────────────────────────────────────────────── |
| 32 | # Converts PDF to Markdown with text, image, and table extraction. |
| 33 | # 用于将 PDF 文件转换为 Markdown 格式,支持文本、图片、表格提取 |
| 34 | PyMuPDF>=1.23.0 |
| 35 | |
| 36 | # ───────────────────────────────────────────────────────────── |
| 37 | # Document to Markdown tool / 文档转 Markdown 工具 (skills/ppt-master/scripts/source_to_md/doc_to_md.py) |
| 38 | # ───────────────────────────────────────────────────────────── |
| 39 | # Native (pure-Python) paths — no external binary required: |
| 40 | # 原生路径(纯 Python,无需外部程序): |
| 41 | # .docx → mammoth |
| 42 | # .html → markdownify (+ beautifulsoup4, listed below) |
| 43 | # .epub → ebooklib (+ markdownify) |
| 44 | # .ipynb → nbconvert |
| 45 | mammoth>=1.6.0 |
| 46 | markdownify>=0.11.6 |
| 47 | ebooklib>=0.18 |
| 48 | nbconvert>=7.0.0 |
| 49 | |
| 50 | # ───────────────────────────────────────────────────────────── |
| 51 | # Excel to Markdown tool / Excel 转 Markdown 工具 (skills/ppt-master/scripts/source_to_md/excel_to_md.py) |
| 52 | # ───────────────────────────────────────────────────────────── |
| 53 | # Converts .xlsx/.xlsm workbooks to Markdown while preserving sheet structure. |
| 54 | # 用于将 .xlsx/.xlsm 工作簿转换为 Markdown,并保留工作表结构。 |
| 55 | openpyxl>=3.1.0 |
| 56 | # |
| 57 | # Fallback path — only needed for less common formats |
| 58 | # (.doc .odt .rtf .tex/.latex .rst .org .typ). |
| 59 | # Not required if you only convert the four native formats above. |
| 60 | # 备用路径 —— 仅在需要处理以下小众格式时才用到 |
| 61 | # (.doc .odt .rtf .tex/.latex .rst .org .typ)。 |
| 62 | # 如果只处理上述四种原生格式,无需安装。 |
| 63 | # macOS: brew install pandoc |
| 64 | # Ubuntu: sudo apt install pandoc |
| 65 | # Windows: https://pandoc.org/installing.html |
| 66 | |
| 67 | # ───────────────────────────────────────────────────────────── |
| 68 | # Image processing tools / 图片处理工具 |
| 69 | # ───────────────────────────────────────────────────────────── |
| 70 | # fix_image_aspect.py - Normalize image boxes for PowerPoint SVG rendering diagnostics |
| 71 | # fix_image_aspect.py - 为 PowerPoint SVG 渲染诊断归一化图片框 |
| 72 | # gemini_watermark_remover.py - Remove watermarks from Gemini-generated images |
| 73 | # gemini_watermark_remover.py - 去除 Gemini 生成图片的水印 |
| 74 | Pillow>=9.0.0 |
| 75 | numpy>=1.20.0 |
| 76 | |
| 77 | # ───────────────────────────────────────────────────────────── |
| 78 | # Web to Markdown tool / 网页转 Markdown 工具 (skills/ppt-master/scripts/source_to_md/web_to_md.py) |
| 79 | # ───────────────────────────────────────────────────────────── |
| 80 | requests>=2.31.0 |
| 81 | beautifulsoup4>=4.12.0 |
| 82 | # Optional — TLS fingerprint impersonation for sites that block Python's |
| 83 | # default TLS fingerprint (e.g., WeChat mp.weixin.qq.com). If installed, |
| 84 | # web_to_md.py uses it automatically; otherwise falls back to requests. |
| 85 | # Install this to avoid needing Node.js for WeChat / portal pages. |
| 86 | # 可选 —— 用于绕过 TLS 指纹屏蔽(例如微信公众号等)。装了之后 web_to_md.py |
| 87 | # 会自动启用;不装则回退到 requests。装了它就不必再装 Node.js。 |
| 88 | curl_cffi>=0.7.0 |
| 89 | |
| 90 | # ───────────────────────────────────────────────────────────── |
| 91 | # AI image generation tool / AI 图片生成工具 (skills/ppt-master/scripts/image_gen.py) |
| 92 | # ───────────────────────────────────────────────────────────── |
| 93 | # Gemini backend / Gemini 后端 (IMAGE_BACKEND=gemini) |
| 94 | google-genai>=1.0.0 |
| 95 | # OpenAI-compatible backend uses requests from the web tooling section above. |
| 96 | # OpenAI 兼容后端复用上方网页工具所需的 requests。 |
| 97 | |
| 98 | # ───────────────────────────────────────────────────────────── |
| 99 | # SVG Editor / SVG 编辑器 (skills/ppt-master/scripts/svg_editor/server.py) |
| 100 | # ───────────────────────────────────────────────────────────── |
| 101 | # Localhost web editor for annotating SVG elements with edit instructions. |
| 102 | # 本地 Web 编辑器,用于在 SVG 元素上添加编辑标注指令 |
| 103 | flask>=3.0.0 |
| 104 |