Files
doc_processer/pyproject.toml

62 lines
1.3 KiB
TOML
Raw Permalink Normal View History

2025-12-29 17:34:58 +08:00
[project]
name = "doc-processer"
version = "0.1.0"
description = "Document processing API - Image to LaTeX/Markdown/MathML and Markdown to DOCX"
2025-12-31 17:38:32 +08:00
requires-python = ">=3.10"
2025-12-29 17:34:58 +08:00
license = { text = "MIT" }
authors = [
{ name = "YogeLiu" }
]
dependencies = [
2025-12-31 17:38:32 +08:00
"fastapi==0.128.0",
"uvicorn[standard]==0.40.0",
"opencv-python==4.12.0.88",
"python-multipart==0.0.21",
"pydantic==2.12.5",
"pydantic-settings==2.12.0",
"httpx==0.28.1",
"numpy==2.2.6",
"pillow==12.0.0",
"python-docx==1.2.0",
"paddleocr==3.3.2",
"doclayout-yolo==0.0.4",
"latex2mathml==3.78.1",
"paddle==1.2.0",
"pypandoc==1.16.2",
"paddlepaddle",
"paddleocr[doc-parser]",
2026-02-04 12:00:06 +08:00
"safetensors",
"lxml>=5.0.0"
2025-12-29 17:34:58 +08:00
]
2025-12-31 17:38:32 +08:00
[tool.uv.sources]
paddlepaddle = { path = "wheels/paddlepaddle-3.4.0.dev20251224-cp310-cp310-linux_x86_64.whl" }
2025-12-29 17:34:58 +08:00
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.24.0",
"ruff>=0.8.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["app"]
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
ignore = ["E501"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]