Initial commit: CMM Report Analyzer

FastAPI app that parses CMM inspection reports (PDF/Excel/CSV),
computes SPC metrics (Cp/Cpk/Pp/Ppk, control limits, Shapiro-Wilk),
generates interactive Plotly charts, and provides AI-powered quality
summaries via Azure OpenAI with graceful fallback.

Includes 21 passing tests covering parsers, SPC calculations, and
API endpoints.
This commit is contained in:
chrisryn
2026-02-19 10:38:51 -06:00
commit 9abf9b4b58
28 changed files with 1727 additions and 0 deletions

32
pyproject.toml Normal file
View File

@@ -0,0 +1,32 @@
[project]
name = "cmm-report-analyzer"
version = "0.1.0"
description = "CMM inspection report analyzer with SPC metrics and AI summaries"
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.32",
"pdfplumber>=0.11",
"pandas>=2.2",
"openpyxl>=3.1",
"numpy>=2.0",
"scipy>=1.14",
"plotly>=5.24",
"openai>=1.50",
"pydantic-settings>=2.6",
"python-multipart>=0.0.12",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.24",
"httpx>=0.27",
]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[build-system]
requires = ["setuptools>=75"]
build-backend = "setuptools.build_meta"