-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
76 lines (71 loc) · 1.72 KB
/
pyproject.toml
File metadata and controls
76 lines (71 loc) · 1.72 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
[project]
name = "openfoia"
version = "3.0.0"
description = "Local-first investigation toolkit for journalists, researchers, and citizens"
readme = "README.md"
license = "AGPL-3.0"
requires-python = ">=3.11"
dependencies = [
# Core — always needed, pure Python or lightweight
"fastapi>=0.109.0",
"uvicorn>=0.27.0",
"sqlalchemy>=2.0.0",
"alembic>=1.13.0",
"httpx>=0.26.0",
"pydantic>=2.5.0",
"pydantic-settings>=2.1.0",
"typer>=0.9.0",
"rich>=13.7.0",
"python-multipart>=0.0.6",
"jinja2>=3.1.0",
"pypdf>=3.17.0",
"python-docx>=1.1.0",
"aiofiles>=23.2.0",
]
[project.optional-dependencies]
# OCR — requires system packages: tesseract-ocr, poppler-utils
ocr = [
"pytesseract>=0.3.10",
"pdf2image>=1.16.0",
]
# Delivery gateways
fax = ["twilio>=8.10.0", "reportlab>=4.0.0"]
mail = ["lob>=4.0.0"]
# Cloud AI providers
cloud-ai = ["anthropic>=0.18.0", "openai>=1.10.0"]
# Local NER models
ner = ["gliner>=0.2.0"]
ner-spacy = ["spacy>=3.7.0"]
# Tor routing
tor = ["socksio>=1.0.0"]
# Browser automation
browser = ["playwright>=1.40.0"]
# Outlook MSG email files
email-files = ["extract-msg>=0.48.0"]
# DocumentCloud integration
documentcloud = ["documentcloud>=4.0.0"]
# Encrypted database
encryption = ["pysqlcipher3>=1.2.0"]
# Everything
all = [
"openfoia[ocr,fax,mail,cloud-ai,ner,tor,browser,email-files,encryption]",
]
# Development
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"ruff>=0.1.0",
"mypy>=1.8.0",
]
[project.scripts]
openfoia = "openfoia.cli:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.mypy]
python_version = "3.11"
strict = true