Metadata-Version: 2.4
Name: ezpptx
Version: 0.0.4
Summary: 演示文稿生成工具：主题或大纲经多智能体策划、撰稿与审校，输出可编辑的 PPTX
Author: EAD Suite
License-Expression: LicenseRef-Proprietary
Keywords: pptx,powerpoint,llm,flask,multi-agent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: Flask>=3.0
Requires-Dist: python-pptx>=0.6.23
Requires-Dist: Pillow>=10.0
Requires-Dist: requests>=2.31
Requires-Dist: markitdown>=0.1
Dynamic: license-file

# 智析数据 · PPT 制作工具

本机部署的演示文稿生成工具。给出主题或大纲后，由五个智能体依次完成结构策划、版式设计、
数据整理、文案撰写与审校，再由渲染引擎输出可直接编辑的 `.pptx` 文件。生成过程与产物均保存在本机，
模型调用指向用户自行配置的接口。

本页为双语：中文说明在前，英文说明自「Zhixi PPT Studio」一节起。

## 概述

| 环节 | 执行方 | 职责 |
| --- | --- | --- |
| 策划 | Planner | 将主题拆解为页面序列，确定每页承担的角色 |
| 设计 | Designer | 为每页选择版式与配色 |
| 数据 | Analyst | 生成图表数据与指标口径 |
| 撰稿 | Writer | 按各版式的文案预算撰写标题、导语与正文 |
| 审校 | Critic | 核对事实、字数与版式容量 |
| 渲染 | 渲染引擎 | 按最终结构生成 PPTX 与网页预览 |

模型只输出结构化的页面描述（Deck IR），排版由渲染引擎执行。因此同一份内容重复生成时，
版式与间距保持一致，不会出现每次结果都不同的情况。

## 运行环境

- Python 3.8 及以上。安装包为 Windows x64 预编译二进制包（`cp38-abi3-win_amd64`），
  安装时无需编译环境，适用于 64 位 CPython 3.8 及以上版本。不支持 32 位与 ARM 平台。
- 端口 26802 需处于空闲状态。
- 默认监听 `0.0.0.0`，同一网段的其他主机可访问；仅本机使用时将 `PPT_HOST` 设为 `127.0.0.1`。
- 需要一个 OpenAI 兼容的模型接口（DeepSeek、OpenAI、Kimi、智谱、通义、豆包、混元、
  硅基流动、Ollama 等），在「配置」页填写接口地址、模型名称与密钥。五个智能体可分别指定模型。
- 单次上传的参考文档合计不超过 16 MB。

## 安装

```bash
pip install ezpptx
```

安装完成后提供 `ezpptx` 命令行入口，同时可用 `python -m ezpptx` 启动；
模块导入名称为 `ezpptx`。

## 启动

```bash
ezpptx                  # 启动服务，默认 http://127.0.0.1:26802
```

| 变量 | 默认值 | 说明 |
| --- | --- | --- |
| `PPT_PORT` | `26802` | 服务端口 |
| `PPT_HOST` | `0.0.0.0` | 监听地址 |
| `EZPPTX_HOME` | `C:\Users\<用户名>\ezpptx` | 数据根目录 |
| `PPT_PASSWORD` | 空 | 指定首次登录口令，未设置时使用默认口令 |

## 初始账户

系统采用口令登录，无用户名。首次访问使用默认口令 `easy123`，登录后须修改口令方可继续使用。
连续登录失败会锁定账户并要求输入验证码，同一地址的请求也有限流。

## 功能

### 大纲确认

填写主题或大纲后，「生成演示文稿」先给出初版结构。此时可逐页修改标题、导语与版式，
也可增删页面、调整顺序；或将修改要求发给智能体，由其在你改过的版本上继续修订。
确认大纲后才进入生成流水线，避免整份重来。

### 版式与配色

内置 23 种版式，覆盖封面、章节、目录、要点、序号条目、勾选清单、两栏、卡片、四象限、
金字塔、指标组、数字海报、图表、图表加解读、图表加指标、表格、左右对比、时间轴、流程、
路线图、漏斗、金句与结尾。配色共 22 套，可选择明色或深色底。点选任一样式时，
右侧会用内置示例即时渲染全套版式的预览，确认观感后再生成。

### 图表与表格

支持 13 类图表：柱状、条形、折线、面积、饼图、环图、堆叠柱、百分比堆叠、散点、雷达、
排名、进度与增减拆解。前 10 类生成 PowerPoint 原生图表对象，可在 PowerPoint 中继续编辑
数据与样式，不是图片。表格提供 7 种样式，由渲染引擎按列数与内容自动选择，也可显式指定。

### 编辑台

生成完成后，任意一页可打开编辑台：直接点击页面文字即可修改，失焦自动保存并重新导出；
可更换版式（同一内容有多种结构可选）、调整疏密（紧凑、标准、宽松）、更换图表类型，
或让智能体重写本页。换肤不重新生成内容，仅替换配色。

### 参考文档

可上传一个或多个文档作为事实依据，支持 PDF、Word、Excel、PowerPoint、TXT、Markdown 与 CSV。
文档文本由 markitdown 提取后进入大纲、图表与文案的生成上下文。

### 模型配置

「配置」页可添加服务商，填写接口地址、模型名称与密钥，并测试连通性、拉取可用模型列表。
生成页右侧实时显示各阶段进度与日志，任务可取消。

## 数据目录

所有可写内容存放于用户主目录下的 `ezpptx` 文件夹（`C:\Users\<用户名>\ezpptx`），
分为 config、outputs、logs、temp、models、cache 六个子目录。卸载、重装与升级均不修改该目录。
迁移至其他主机时，将其复制到目标主机的相同位置即可。可用 `EZPPTX_HOME` 指定其他位置。

## 授权

本软件为专有软件，按组件、机器码与失效日期授权，一机一码。首次运行自动签发 90 天试用授权，
试用期内功能不受限制。授权到期后，在授权页面粘贴新的授权码即可生效。

更换主机、更换系统盘或重装操作系统将导致机器码变更，需重新申请授权。建议在到期前完成更新。

许可条款随安装包分发（`LICENSE.txt`）。不同意条款者请勿安装。

## 联系方式

授权申请、续期与问题反馈：857914532@qq.com

---

# Zhixi PPT Studio

A locally deployed presentation generator. Given a topic or an outline, five agents carry out
structure planning, layout design, data preparation, copywriting and review in sequence; a
rendering engine then produces an editable `.pptx` file. Generation and output stay on the local
machine; model calls go to the endpoint you configure.

## Overview

| Stage | Agent | Responsibility |
| --- | --- | --- |
| Planning | Planner | Split the topic into a slide sequence and assign each slide a role |
| Design | Designer | Select a layout and palette for each slide |
| Data | Analyst | Produce chart data and define the metrics |
| Writing | Writer | Write titles, lead-ins and body copy within each layout's budget |
| Review | Critic | Check facts, word counts and layout capacity |
| Rendering | Renderer | Build the PPTX and the web preview from the final structure |

Models output a structured deck description (Deck IR) only; the renderer performs the layout.
Repeated generation of the same content therefore yields consistent layouts and spacing.

## Requirements

- Python 3.8 or later. The package is a prebuilt Windows x64 binary wheel
  (`cp38-abi3-win_amd64`); no build environment is required and it runs on 64-bit CPython 3.8
  and later. 32-bit and ARM platforms are not supported.
- Port 26802 must be free.
- The service listens on `0.0.0.0` by default and is reachable from other hosts on the local
  network. Set `PPT_HOST` to `127.0.0.1` to restrict it to the local host.
- An OpenAI-compatible model endpoint is required (DeepSeek, OpenAI, Kimi, Zhipu, Qwen, Doubao,
  Hunyuan, SiliconFlow, Ollama and similar). Endpoint address, model name and key are entered on
  the settings page. The five agents can use different models.
- Reference documents uploaded in one request must not exceed 16 MB in total.

## Installation

```bash
pip install ezpptx
```

Installation provides the `ezpptx` command-line entry point, and `python -m ezpptx` also works;
the import name is `ezpptx`.

## Startup

```bash
ezpptx                  # starts the service, default http://127.0.0.1:26802
```

| Variable | Default | Description |
| --- | --- | --- |
| `PPT_PORT` | `26802` | service port |
| `PPT_HOST` | `0.0.0.0` | bind address |
| `EZPPTX_HOME` | `C:\Users\<user>\ezpptx` | data root |
| `PPT_PASSWORD` | empty | initial login password; the default is used when unset |

## Initial account

Sign-in uses a password only; there is no user name. The default password is `easy123` and must
be changed before the system can be used. Repeated failures lock the account and require a
captcha; requests from the same address are rate limited.

## Features

### Outline confirmation

After a topic or outline is entered, the first generated structure is shown before any slide is
built. Titles, lead-ins and layouts can be edited page by page, pages can be added, removed and
reordered, or the revision request can be sent to the agent, which continues from your edited
version. The pipeline starts only after the outline is confirmed.

### Layouts and palettes

23 layouts are built in: cover, section, agenda, closing, bullets, numbered list, checklist,
two-column, cards, matrix, pyramid, KPI group, statistics, chart, chart with commentary, chart
with KPIs, table, comparison, timeline, process, roadmap, funnel and quotation. 22 palettes are
available in light and dark variants. Selecting a style renders a preview of every layout with
built-in sample content, so the appearance can be checked before generation.

### Charts and tables

13 chart types are supported: bar, horizontal bar, line, area, pie, doughnut, stacked bar,
100% stacked bar, scatter, radar, ranking, progress and variance breakdown. The first ten produce
native PowerPoint chart objects and remain editable in PowerPoint; they are not images. Tables
offer seven styles, chosen automatically from column count and content or set explicitly.

### Editing

Any generated slide can be opened in the editor: click the text to change it, and the file is
saved and re-exported on blur. The layout can be switched (several structures fit the same
content), density adjusted (compact, normal, airy), chart type changed, or the slide rewritten by
the agent. Switching palette does not regenerate content.

### Reference documents

One or more documents can be uploaded as the factual basis: PDF, Word, Excel, PowerPoint, TXT,
Markdown and CSV. Text is extracted with markitdown and enters the context for the outline,
charts and copy.

### Model configuration

The settings page adds providers with endpoint address, model name and key, tests connectivity and
lists available models. Stage progress and logs are shown live during generation, and a running
job can be cancelled.

## Data directory

All writable content is stored in `C:\Users\<user>\ezpptx` in six subdirectories: config, outputs,
logs, temp, models and cache. Uninstalling, reinstalling and upgrading do not modify this
directory. To migrate, copy it to the same location on the target host. `EZPPTX_HOME` overrides
the location.

## Licence

The software is proprietary and licensed per machine by component, machine code and expiry date.
A 90-day trial licence is issued automatically on first run, with no feature restrictions. After
expiry, a new licence code can be entered on the licence page.

Replacing the host, the system disk or reinstalling the operating system changes the machine code
and requires a new licence. Updating before expiry is recommended. Licence terms are distributed
with the package (`LICENSE.txt`). Do not install the software if the terms are not accepted.

## Contact

Licence requests, renewals and defect reports: 857914532@qq.com
