Skip to main content

garment-bundle-id

Standard bundle ID generator and parser for QR-based garment factory production tracking. Built and used in production by Scan ERP.

PyPI version License: MIT

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 Pocket
CUFF Cuff
YKE Yoke

Used By

  • Scan ERP — QR-based ERP for CMT garment factories (115,370+ pieces tracked)

Related Reading

License

MIT — Built by Santosh Rijal of Scan ERP

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)

Source distribution for garment-bundle-id 1.0.2
File Size Uploaded
garment_bundle_id-1.0.2.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for garment-bundle-id 1.0.2
File Interpreter ABI Platform
garment_bundle_id-1.0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page