Skip to main content

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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

garment_bundle_id-1.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

garment_bundle_id-1.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file garment_bundle_id-1.0.1.tar.gz.

File metadata

  • Download URL: garment_bundle_id-1.0.1.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

Hashes for garment_bundle_id-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6c698f5a8acdfd165e82af8c99e12a65056b683bb25be91ce6a4b491f3ed6835
MD5 7f94a6dc6c0ea9a95b7a537acb73cc31
BLAKE2b-256 ac43a5fb65bf7a9d47dd3a601f21849f0d12f061526ea6817e20672c80e1056c

See more details on using hashes here.

File details

Details for the file garment_bundle_id-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for garment_bundle_id-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccf69b94197cef0f80efc4ffa2f9ac174349eca88db0edd0e5e3d38f5edc8b47
MD5 93d8207cbcf0863c63490e27526171c7
BLAKE2b-256 ee79f76a6b88034ba68bbbe22658d56aa9ba425d930af87914640e8f366213f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page