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
Metadata
Release files for garment-bundle-id 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_bundle_id-1.0.2.tar.gz | 4.2 kB | Without provenance | Details for garment_bundle_id-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| garment_bundle_id-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for garment_bundle_id-1.0.2-py3-none-any.whl |
Total release size: 8.8 kB
Release files / garment_bundle_id-1.0.2.tar.gz
| Download URL | garment_bundle_id-1.0.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2044cea04a19e9d17b8237679f97340afba79c1071a723077322c14230e80fc3
|
|
BLAKE2b-256 checksum How to use checksums |
84d872e933d90fa93d891db8fa71c9823a0a360078e7ddc9ec5792c8fd665543
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.1
|
Release files / garment_bundle_id-1.0.2-py3-none-any.whl
| Download URL | garment_bundle_id-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d247cc98b477c3b7fa1e5fa8bece7c43ed5cc7bc0a6784e48c1ada35834bd19d
|
|
BLAKE2b-256 checksum How to use checksums |
7647769fc8fb1a42363429a82bfff49f740f409362ec7b9fba19d06855a45941
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.1
|
Security for garment-bundle-id 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.