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