返回 ppt-master
template_fill_pptx.py
根目录 / skills / ppt-master / scripts / template_fill_pptx.py
1 #!/usr/bin/env python3
2 """PPT Master - PPTX Template Fill (thin wrapper).
3
4 Delegates to the template_fill_pptx package. Kept as the CLI entry point so the
5 documented command paths keep working:
6
7 python3 scripts/template_fill_pptx.py analyze <deck.pptx> -o <stem>.slide_library.json
8 python3 scripts/template_fill_pptx.py scaffold <stem>.slide_library.json -o fill_plan.json
9 python3 scripts/template_fill_pptx.py check-plan <stem>.slide_library.json fill_plan.json
10 python3 scripts/template_fill_pptx.py apply <deck.pptx> fill_plan.json -o output.pptx
11 python3 scripts/template_fill_pptx.py validate <project>
12
13 Implementation lives in the template_fill_pptx/ package (ooxml, analyzer,
14 scaffolder, checker, text_fill, table_fill, chart_fill, transitions, notes,
15 package, applier, validator, cli).
16 """
17
18 import sys
19 from pathlib import Path
20
21 # Ensure the scripts directory is on sys.path so the package can be found.
22 sys.path.insert(0, str(Path(__file__).resolve().parent))
23
24 from attribution_guard import require_skill_integrity
25 from console_encoding import configure_utf8_stdio
26 from template_fill_pptx import main
27
28 configure_utf8_stdio()
29
30 if __name__ == "__main__":
31 require_skill_integrity()
32 raise SystemExit(main())
33
33 lines PYTHON