arthurdejong / python-stdnum

A Python library to provide functions to handle, parse and validate standard numbers.
https://arthurdejong.org/python-stdnum/
GNU Lesser General Public License v2.1
498 stars 206 forks source link

GS1 format #175

Closed thiagola92 closed 11 months ago

thiagola92 commented 4 years ago

The same calculation from GTIN (EAN/UCC) format is used to GLN, SSCC, GSRN, GSIN and GCN .
https://www.gs1.org/services/how-calculate-check-digit-manually
https://www.gs1.org/docs/barcodes/GS1_General_Specifications.pdf (page 22)
https://www.gs1.org/services/check-digit-calculator

Is possible to create one module for all formats. What you think?

arthurdejong commented 4 years ago

Hi @thiagola92,

The GTIN codes are already supported in the stdnum.ean module. Recently a stdnum.gs1_128 module was also added that can be used to validate and build GS1-128 barcode values.

I think that mostly leaves GSIN and SSCC which are currently not yet implemented.

thiagola92 commented 11 months ago

I belive this can be close, because GSIN and SSCC are mentioned in:
https://github.com/arthurdejong/python-stdnum/blob/master/stdnum/gs1_ai.dat