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_qr_payload

# 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'
# }

# Generate compact QR payload for printing
qr = generate_qr_payload(
    article="S27", lot="8082", color="BLUE",
    size="M", bundle_number=1, component="FRT",
    total_pieces=50, quantity=1
)
# → '{"a":"S27","l":"8082","b":"S27-8082-BLUE-M-001-FRT",...}'

Bundle ID Format

STYLE-LOT-COLOR-SIZE-BUNDLE#-COMPONENT
S27 - 8082 - BLUE - M - 001 - FRT
Segment Description Example
STYLE Style number S27, S31
LOT Lot/order number 8082, 9001
COLOR Color name (max 8 chars) BLUE, NAVY, RED
SIZE Size code S, M, L, XL, 32
BUNDLE# Bundle sequence (zero-padded to 3 digits) 001, 023, 100
COMPONENT Component code FRT, BK, SLV, CLR

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.0.tar.gz (4.0 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.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: garment_bundle_id-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 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.0.tar.gz
Algorithm Hash digest
SHA256 e17e26dc1ea283a9e7498e9c15b0d118b4312d7d8a36fd784c0771226d0e7918
MD5 45232a87fe9698588d518a55605c44db
BLAKE2b-256 6c331fe7e6e44e408f2f75c90f60799e1419991372f4c862109c1d87a7524fe5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for garment_bundle_id-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e27c5d71f7313c0ee9b0caf3360155bcef6d6d72719ee76375903d56ef48863
MD5 e5cfa5993a5a3b7b926cc6ff2613f1bc
BLAKE2b-256 ac2d4e02a84e05439bf1ba66ad84b5b2bd3b9cd3c92848615fa660f3c6adc083

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