garment-piece-rate
Piece-rate wage calculator for CMT garment factories. Built and used in production by Scan ERP.
Install
pip install garment-piece-rate
Usage
from garment_piece_rate import calculate_piece_rate
result = calculate_piece_rate(
pieces=250,
rate_per_piece=2.50,
skill_level="expert",
quality_score=95,
efficiency_percent=110,
machine_type="OVERLOCK_5THREAD",
)
print(result)
# {
# 'gross': 906.95,
# 'breakdown': { 'base': 781.25, 'machine_bonus': 39.06, 'efficiency_bonus': 78.13, ... }
# }
Formula
adjusted_rate = rate_per_piece × skill_multiplier
base = pieces × adjusted_rate
machine_bonus = base × machine_complexity_bonus[machine_type]
efficiency_bonus = base × 0.05 (if 100-109%) OR base × 0.10 (if 110%+)
quality_penalty = base × (quality_threshold − quality_score) / 100 [if score below threshold]
gross = base + machine_bonus + efficiency_bonus − quality_penalty
Background
Piece-rate calculation is the core wage formula in CMT garment factories. Without automation, supervisor judgment causes 5-15% of wages to be disputed each month. This package implements the formula used by Scan ERP which has automated piece-rate for 115,370+ pieces in production.
Related Reading
- Piece Rate Calculation Software for Garment Factories
- Piece Rate Disputes in Garment Factory
- SAM & SMV Formula in Garment Industry
License
MIT — Built by Santosh Rijal of Scan ERP
Metadata
Release files for garment-piece-rate 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| garment_piece_rate-1.0.2.tar.gz | 3.8 kB | Without provenance | Details for garment_piece_rate-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| garment_piece_rate-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for garment_piece_rate-1.0.2-py3-none-any.whl |
Total release size: 8.1 kB
Release files / garment_piece_rate-1.0.2.tar.gz
| Download URL | garment_piece_rate-1.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b068e9800d804d171b8789b8208019a2bd5ff14c9805ca0f9ce20d805f659410
|
|
BLAKE2b-256 checksum How to use checksums |
e056807354edb66ff88fa14e588f4a2413608cfc4eda325586ccde8e96b61bd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.1
|
Release files / garment_piece_rate-1.0.2-py3-none-any.whl
| Download URL | garment_piece_rate-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c1af1c77b4bb7b48bd7fc0dfadd10acdd5f9ed85f6c33644f9a504f03cfeb2e
|
|
BLAKE2b-256 checksum How to use checksums |
d41d1b831f4f42221c24dfb6e2ef5d21bee7c10650aba509031c9119558488fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.1
|
Security for garment-piece-rate 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.