Metadata-Version: 2.4
Name: garmentqc
Version: 0.1.0
Summary: Defect scoring, tolerance validation, and QC reporting for clothing manufacturing.
Author-email: Abin JPrakash <abinjprakash123@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/yourusername/garmentqc
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# GarmentQC

A lightweight, dependency-free Python library for quality control scoring in
clothing manufacturing pipelines.

## Modules

- **DefectScorer** — scores individual garment defects (0-10) based on defect
  type, location on the garment, and physical size.
- **ToleranceValidator** — validates measured garment dimensions against a
  target size chart with configurable tolerance ranges.
- **QualityReportGenerator** — aggregates defect scores for a batch into a
  pass / rework / reject recommendation.

## Example

```python
from garmentqc import DefectScorer

scorer = DefectScorer(defect_type="torn_seam", location="front_panel", size_cm=3.5)
print(scorer.score())
print(scorer.severity_label())
```

Used in the ThreadFlow platform to automatically score defect photos
uploaded by QC inspectors, as part of an AWS Lambda function triggered by
S3 uploads.
