Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/gs1_128.py
Commit message (Collapse)AuthorAgeFilesLines
* Update database filesArthur de Jong2024-03-171-5/+5
| | | | | | | | | | | | | | The Belgian bpost bank no longer has a registration and a few bank account numbers in the tests that used that bank were removed. Also updates the update/gs1_ai.py script to handle the new format of the data published by GS1. Also update the GS1-128 module to handle some different date formats. The Pakistan entry was kept in the stdnum/iban.dat file because the PDF version of the IBAN Registry still contains the country. fix db
* Fix date formatting on PyPy 2.7Arthur de Jong2023-03-181-2/+2
| | | | | | | The original way of calling strftime was likely an artifact of Python 2.6 support. Fixes 7e84c05
* Extend date parsing in GS1-128Arthur de Jong2023-03-181-20/+31
| | | | | Some new AIs have new date formats or have changed the way optional components of formats are defined.
* Support parsing dates without a day in GS1-128Alexis de Lattre2022-04-091-0/+8
| | | | | | | Date such as '(17)260400' is now properly interpreted as April 30th 2026. Closes https://github.com/arthurdejong/python-stdnum/pull/294
* Fix flake8 blind except Exception errorArthur de Jong2021-01-101-2/+2
|
* Add GS1-128 formatArthur de Jong2020-08-081-0/+269
This adds validation, parsing and encoding functions for GS1-128. It is based on the lists of formats as published by the GS1 organisation. Based on the implementation provided by Sergi Almacellas Abellana <sergi@koolpi.com>. Closes https://github.com/arthurdejong/python-stdnum/pull/144