Arthur de Jong

Open Source / Free Software developer

path: root/stdnum/
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Correctly split IMSI with multi-length MNCArthur de Jong2018-04-101-2/+2
| | | | | | | | | | | | Ensures that imsi.split() will correctly split the IMSI into an MCC, MNC and MSIN even if not all MNCs within a single MCC have the same length. This has the downside of not being able to guess the MNC length in some cases. This also omits empty information from the data file and updates the data file from Wikipedia. Closes
* Docstring improvementsArthur de Jong2017-09-111-2/+2
* Raise InvalidComponent for unregistered IMSIArthur de Jong2015-04-171-3/+3
* Implement validate() for IMSIArthur de Jong2013-06-081-12/+24
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-261-2/+4
| | | | | | usable format git-svn-id: 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: 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an IMSI (International Mobile Subscriber Identity) ↵Arthur de Jong2011-09-231-0/+80
module git-svn-id: 9dea7c4f-944c-4273-ac1a-574ede026edc