Standard bundle ID generator and parser for QR-based garment factory production tracking. Format: STYLE-LOT-COLOR-SIZE-BUNDLE#-COMPONENT. Built and used in production by Scan ERP.
Project description
garment-bundle-id
Standard bundle ID generator and parser for QR-based garment factory production tracking. Built and used in production by Scan ERP.
Install
pip install garment-bundle-id
Usage
from garment_bundle_id import generate_bundle_id, parse_bundle_id
# Generate a bundle ID
bid = generate_bundle_id(
style="S27",
lot="8082",
color="BLUE",
size="M",
bundle_number=1,
component="FRT",
)
print(bid)
# → "S27-8082-BLUE-M-001-FRT"
# Parse an existing bundle ID
parsed = parse_bundle_id("S27-8082-BLUE-M-001-FRT")
print(parsed)
# {
# 'style': 'S27', 'lot': '8082', 'color': 'BLUE',
# 'size': 'M', 'bundle_number': 1, 'component': 'FRT'
# }
Bundle ID Format
STYLE-LOT-COLOR-SIZE-BUNDLE#-COMPONENT
S27 - 8082 - BLUE - M - 001 - FRT
| Segment | Description |
|---|---|
| STYLE | Style number (S27, S31) |
| LOT | Lot/order number |
| COLOR | Color name (max 8 chars) |
| SIZE | Size code (S, M, L, XL, 32) |
| BUNDLE# | Bundle sequence (zero-padded to 3 digits) |
| COMPONENT | Component code (FRT, BK, SLV, CLR, etc.) |
Component Codes
Standard codes used across CMT factories:
| Code | Component |
|---|---|
| FRT | Front |
| BK | Back |
| SLV | Sleeve |
| SLV-L | Sleeve (left) |
| SLV-R | Sleeve (right) |
| CLR | Collar |
| PKT | |
| CUFF | Cuff |
| YKE | Yoke |
Used By
- Scan ERP — QR-based ERP for CMT garment factories (115,370+ pieces tracked)
Related Reading
- QR Code Production Tracking in Garment Factories
- Bundle Tracking System for Garment Factory
- RFID vs QR Code for Garment Tracking
- Real-Time Garment Production Tracking System: 2026 Guide
License
MIT — Built by Santosh Rijal of Scan ERP
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file garment_bundle_id-1.0.2.tar.gz.
File metadata
- Download URL: garment_bundle_id-1.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2044cea04a19e9d17b8237679f97340afba79c1071a723077322c14230e80fc3
|
|
| MD5 |
1d359563b60da686f35699653abebb29
|
|
| BLAKE2b-256 |
84d872e933d90fa93d891db8fa71c9823a0a360078e7ddc9ec5792c8fd665543
|
File details
Details for the file garment_bundle_id-1.0.2-py3-none-any.whl.
File metadata
- Download URL: garment_bundle_id-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d247cc98b477c3b7fa1e5fa8bece7c43ed5cc7bc0a6784e48c1ada35834bd19d
|
|
| MD5 |
7bd252c84066c158ca0223de9902b58b
|
|
| BLAKE2b-256 |
7647769fc8fb1a42363429a82bfff49f740f409362ec7b9fba19d06855a45941
|