- 新增 PdfExporter(reportlab)与 DocxExporter(python-docx),实现与 HtmlExporter 一致的同步 render + 异步 export,v1 文本优先(标题/段落/ 行内强调与链接/列表/引用/表格/代码块/数学文本),function_plot 与 mermaid 保留源码占位并记 warning。 - service 层加 _EXPORTERS 注册表按格式分发,删除 format!=html 硬限制, 扩展名/MIME/产物清理泛化到 html/pdf/docx 三种格式。 - 新增 app/plot/renderer.py:StaticRenderRequest + StaticRenderer Protocol + FunctionPlotStaticRenderer + MermaidStaticRenderer;HtmlExporter 改经 FunctionPlotStaticRenderer 消费,去除对 render_svg 的直接依赖。 - 补齐 PDF/DOCX 魔法字节、CJK 字体、占位 warning 与 StaticRenderer 契约测试。 - 更新 Export开发说明.md。 Co-Authored-By: Claude Code <noreply@anthropic.com>
29 lines
604 B
TOML
29 lines
604 B
TOML
[project]
|
|
name = "notes-agent-backend"
|
|
version = "0.1.0"
|
|
description = "Notes Agent 的 FastAPI 基础壳子"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"cryptography>=45,<52",
|
|
"fastapi>=0.116,<1.0",
|
|
"httpx>=0.28,<1.0",
|
|
"jsonschema>=4.25,<5.0",
|
|
"mistune>=3.0,<4.0",
|
|
"python-docx>=1.1,<2.0",
|
|
"pyyaml>=6.0,<7.0",
|
|
"referencing>=0.36,<1.0",
|
|
"reportlab>=4.0,<5.0",
|
|
"sqlite-vec>=0.1.9",
|
|
"uvicorn[standard]>=0.35,<1.0",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.4,<9.0",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
pythonpath = ["."]
|
|
testpaths = ["tests"]
|