Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (79 loc) · 2.28 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (79 loc) · 2.28 KB
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
81
82
83
84
85
86
[build-system]
requires = ["setuptools>=69", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "localdataextractor"
version = "0.1.0"
description = "Privacy-first local document to Markdown extraction pipeline"
readme = "README.md"
requires-python = ">=3.11"
authors = [{name = "localDataExtractor"}]
license = "MIT"
license-files = ["LICENSE"]
keywords = ["document-extraction", "markdown", "ocr", "local-first", "privacy"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Text Processing",
]
dependencies = [
"requests>=2.32.0",
]
[project.optional-dependencies]
# GLM-OCR-only pipeline for low-RAM machines (8 GB Windows laptops):
# PDFs/images via a local vision model, txt/css direct read. Pure-wheel
# installs only - no Docling/PyTorch, tesseract, LibreOffice or Java.
lite = [
"Pillow>=10.0.0",
"pypdfium2>=4.0.0",
"numpy>=1.26.0",
"PySide6>=6.8.0",
]
full = [
"markitdown>=0.0.1a3",
"docling>=2.32.0",
"ocrmypdf>=16.0.0",
"pdfplumber>=0.11.0",
"pypdf>=5.0.0",
"openpyxl>=3.1.5",
"python-docx>=1.1.2",
"python-pptx>=1.0.2",
"xlrd>=2.0.1",
"PySide6>=6.8.0",
"Pillow>=10.0.0",
"numpy>=1.26.0",
"pypdfium2>=4.0.0",
]
quality = [
"opencv-python-headless>=4.9.0",
# camelot-py 2.0 folded the old [base] extra into the core package;
# keeping the extra only produces a resolver warning.
"camelot-py>=0.11.0",
"scikit-image>=0.22.0",
# camelot-py pulls chardet>=3.0.4 with no upper bound, but
# requests 2.32 only accepts chardet<6. Pin to a compatible
# window so `requests` doesn't emit RequestsDependencyWarning.
"chardet>=5.0,<6",
]
dev = [
"pytest>=8.3.0",
"pytest-cov>=5.0.0",
]
[project.scripts]
localdataextractor = "localdataextractor.cli:main"
localdataextractor-gui = "localdataextractor.gui.app:main"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
localdataextractor = ["assets/*.svg", "assets/*.png"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"