MyMidas/backend/pyproject.toml
megaproxy 26e2a055db Add AI receipt scanning with OCR pipeline and debug toggle
- OCR pipeline: Tesseract (images) + pdfplumber (PDFs) → AI text prompt →
  rule-based regex fallback; works with any text model, not just vision models
- Scan Receipt toolbar button parses a photo and pre-fills the transaction form;
  receipt image is automatically attached to the created transaction
- AI settings page: provider, API key (AES-256-GCM encrypted), custom URL,
  model, and per-user debug toggle that gates the OCR/AI debug panel
- Fix CSRF cookie secure=False so HTTP deployments work; add 7-day max_age
- Fix attachment_refs missing from _to_response (attachments never appeared in UI)
- Fix multipart boundary lost when Content-Type was set manually in axios calls
- nginx: raise client_max_body_size to 15 MB, add 120s proxy timeout for OCR
- Migration 0005: add ai_debug boolean to users table
- Update README and CLAUDE.md with AI scanning docs and architecture notes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 22:07:38 +00:00

58 lines
1.2 KiB
TOML

[project]
name = "finance-tracker"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.30",
"sqlalchemy[asyncio]>=2.0",
"asyncpg>=0.30",
"alembic>=1.14",
"redis[hiredis]>=5.2",
"pydantic[email]>=2.10",
"pydantic-settings>=2.7",
"argon2-cffi>=23.1",
"python-jose[cryptography]>=3.3",
"pyotp>=2.9",
"qrcode[pil]>=8.0",
"cryptography>=44.0",
"yfinance>=0.2",
"prophet>=1.1",
"statsmodels>=0.14",
"numpy>=2.0",
"scipy>=1.14",
"pandas>=2.2",
"joblib>=1.4",
"apscheduler>=3.10",
"python-multipart>=0.0.12",
"httpx>=0.27",
"python-dateutil>=2.9",
"slowapi>=0.1.9",
"structlog>=24.0",
"pillow>=11.0",
"python-magic>=0.4",
"pytesseract>=0.3",
"pdfplumber>=0.11",
"pdf2image>=1.17",
"psycopg2-binary>=2.9",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"pytest-cov>=6.0",
"httpx>=0.27",
"anyio>=4.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.hatch.build.targets.wheel]
packages = ["app"]