Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/ie
Commit message (Collapse)AuthorAgeFilesLines
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-4/+4
| | | | | | | | | | | 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-112-8/+8
|
* Fix bug in Irish VAT number validationArthur de Jong2016-05-281-9/+26
| | | | | | | | | | | The last digits of the number that should be letters were not tested to be letters which could result in ValueError being raised for certain validations. This also clarifies the documentation and adds a convert() function to convert numbers from the old format (where the second character would be a letter or symbol) to the new format (7 digits followed by 1 or 2 letters).
* Code style improvementsArthur de Jong2015-10-111-1/+1
| | | | | | | Ensure that regular expressions are r'' strings, avoid too long lines and fix line wrapping. Also avoid catching toplevel Exception when possible and use binascii for hex to binary conversion which is available in both Python 2 and 3.
* Add support for 2013 extension of Irish PPS NumbersArthur de Jong2014-02-172-14/+40
| | | | | References: - https://www.welfare.ie/en/Pages/PPSN.aspx - http://www.citizensinformation.ie/en/social_welfare/irish_social_welfare_system/personal_public_service_number.html
* Implement validate() for Irish numbersArthur de Jong2013-06-082-34/+57
|
* some more documentation improvementsArthur de Jong2012-02-262-5/+5
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@168 9dea7c4f-944c-4273-ac1a-574ede026edc
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-262-8/+8
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a PPS No (Personal Public Service Number, Irish ↵Arthur de Jong2012-02-231-0/+60
| | | | | | personal number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@160 9dea7c4f-944c-4273-ac1a-574ede026edc
* give all packages a descriptionArthur de Jong2012-02-191-0/+21
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@152 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a VAT (Irish VAT number) moduleArthur de Jong2012-02-172-0/+73
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@134 9dea7c4f-944c-4273-ac1a-574ede026edc