Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/ean.py
Commit message (Collapse)AuthorAgeFilesLines
* Add GTIN (EAN-14) validationSergi Almacellas Abellana2019-05-231-2/+4
|
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-2/+2
| | | | | | | | | | | The problem with the latter is that it will also accept all kinds of unicode digits that are not the ASCII 0-9 digits causing all kinds of problems in check digit calculations. Some of these unicode characters are also considered digits by int() but some are not (such as the SUPERSCRIPT TWO unicode character). Closes https://github.com/arthurdejong/python-stdnum/issues/96
* Docstring improvementsArthur de Jong2017-09-111-6/+6
|
* Use a slightly more readable weight alternationArthur de Jong2017-04-071-2/+2
| | | | | Switch to a slightly more readable syntax for alternating between two weights in checksums calculations.
* Implement validate() for EANArthur de Jong2013-06-081-10/+22
|
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-261-1/+3
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* implement a stdnum.util module for holding utility ↵Arthur de Jong2012-02-041-2/+4
| | | | | | functions (for now clean()) git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@100 9dea7c4f-944c-4273-ac1a-574ede026edc
* make source code layout follow PEP8 moreArthur de Jong2011-08-191-3/+6
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@76 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an EAN (International Article Number) moduleArthur de Jong2011-06-201-0/+50
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@70 9dea7c4f-944c-4273-ac1a-574ede026edc