File size: 1,913 Bytes
53d9817
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[project]
name = "universal-doc-parser"
version = "1.0.3"
description = "A zero-GPU, CPU-only document ingestion engine for RAG pipelines and AI agents."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
dependencies = [
    "pydantic>=2.0",
    "pypdfium2>=5.13.0",
    "pdfplumber>=0.11",
    "python-docx>=1.1",
    "openpyxl>=3.1",
    "python-magic-bin>=0.4.14; sys_platform == 'win32'",
    "python-magic>=0.4.27; sys_platform != 'win32'",
    "numpy>=1.24.0",
    "pyarrow>=14.0.0",
    "selectolax>=0.4.11",
    "beautifulsoup4>=4.12.0",
    "ebooklib>=0.18",
    "rapidocr-onnxruntime>=1.3.0",
    "opencv-python-headless>=4.8.0",
    "pillow>=10.1.0",
    "extract-msg>=0.48.0",
    "python-pptx>=1.0.0",
    "xlrd>=2.0.1",
    "olefile>=0.46",
    "xlwt>=1.3.0",
    "mcp>=1.0.0,<2.0",
    "reportlab>=5.0.1",
]

[project.urls]
Homepage = "https://github.com/Edge-Explorer/Parse-Anything-"
"Live Demo" = "https://huggingface.co/spaces/Karan6124/universal-doc-parser"
Repository = "https://github.com/Edge-Explorer/Parse-Anything-"
Documentation = "https://github.com/Edge-Explorer/Parse-Anything-#readme"
Issues = "https://github.com/Edge-Explorer/Parse-Anything-/issues"

[project.optional-dependencies]
demo = [
    "gradio>=4.0.0",
    "plotly>=5.0.0",
]
dev = [
    "pytest>=8.0",
    "pytest-cov",
    "hypothesis",
    "ruff>=0.4.0",
    "psutil>=5.9.0",
]
ocr = [
    "rapidocr-onnxruntime>=1.3.0",
    "opencv-python-headless>=4.8.0",
]
enrichment = [
    "onnxruntime>=1.16.0",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["universal_parser"]

[tool.pytest.ini_options]
filterwarnings = [
    "ignore::UserWarning:openpyxl.",
    "ignore::DeprecationWarning",
]

[tool.ruff]
line-length = 100
target-version = "py311"

[tool.ruff.lint]
select = ["E", "F", "I", "W", "UP"]
ignore = ["E501"]