Skip to content
liusite66-devPublic

About

这是一个用于cupl word排版的项目

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

PaperMate 论文排版工具

PaperMate 是一个基于 Flask 的中文文档排版网站,支持论文和公文内容生成 Word 文档, 并提供对应的格式模板下载。

本地运行

使用 Python 3.12 或更高版本:

pip install -r requirements.txt
python app.py

访问 http://127.0.0.1:5000。

部署

网站需要能够运行 Python 的服务器或托管平台。安装 requirements.txt 中的依赖后, 可在 Linux 上使用以下命令启动:

gunicorn --bind 0.0.0.0:$PORT --workers 2 --threads 1 --timeout 120 app:app

如果平台未提供 PORT 环境变量,请改用实际的监听端口。GitHub Pages 不能运行 此项目的 Flask 后端。

应用按请求在内存中生成文档,不会将生成结果保存到服务器的项目目录。 运行测试:

python -m unittest discover -s tests

项目文件

  • app.py、gov_formatter.py:网站与文档生成代码。
  • templates/:网站页面。
  • 两个 .docx 文件:网站提供下载的论文和公文模板。
  • downloads/Setup.1.0.0.exe:网站“更多产品”页面提供的安装包。
  • requirements.txt、Procfile:依赖和部署启动配置。

About

这是一个用于cupl word排版的项目

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages