Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum
Commit message (Collapse)AuthorAgeFilesLines
...
* Add to_iban() function to Spanish CCCArthur de Jong2016-09-101-0/+11
|
* Implement calc_check_digits() in IBANArthur de Jong2016-09-101-7/+18
| | | | | | Introduce a function to calculate the two check digits of an IBAN. Since the check digits are the third and fourth characters in the number, placeholders need to be provided when calling this function.
* Add Spanish Código Cuenta Corriente (CCC)David García Garzón2016-09-101-0/+116
|
* Add Spanish CUPS codeDavid García Garzón2016-09-031-0/+113
|
* Properly print error message of exceptionsArthur de Jong2016-08-281-1/+1
| | | | | This ensures that the message passed to the constructor is shown in the traceback while falling back to the class default.
* Get files ready for 1.4 release1.4Arthur de Jong2016-07-261-2/+8
|
* Update database filesArthur de Jong2016-07-265-284/+328
| | | | This also updates the getmybp script to support the new layout.
* Add formatting of ISO 6346 container codesArthur de Jong2016-07-261-1/+9
|
* Implement Damm algorithmArthur de Jong2016-07-261-0/+93
| | | This is a generic check digit algorithm.
* Fix French NIF format testArthur de Jong2016-07-261-3/+3
| | | Fixes 2409ee9.
* Improve validation to Swiss SSN numberArthur de Jong2016-07-261-5/+14
| | | | The EAN-13 number should start with 756.
* Add documentation to Brazillian CPFArthur de Jong2016-07-261-1/+9
|
* Add pointer to ISO 6346 informationArthur de Jong2016-07-261-0/+4
|
* Fix copyright noticeArthur de Jong2016-07-261-1/+1
|
* Add NIF - French tax identification numberDimitri Papadopoulos2016-07-261-0/+75
| | | | Add module for NIF also known as SPI number.
* Move NIR check digit calculation to functionArthur de Jong2016-07-261-15/+30
| | | | | This also fixes a number of formatting issues, improves the module description and adds tests for the 2A and 2B departments.
* Improve French NIR validationDimitri Papadopoulos2016-07-261-5/+14
| | | | | Please note that the 7th character of the NIR might be 'A' or 'B'. Other than that the NIR contains digits only.
* Add extra tests for SIREN and SIRETArthur de Jong2016-07-252-2/+11
| | | | | | | | This adds tests for a few numbers that have been found online and allows the dot as a seprator because those numbers were found. It also ensures that the SIREN validation is also called for SIRET and adds a SIRET formatting function.
* Add French SIRET numberYoann Aubineau2016-07-251-0/+97
| | | | | Add a SIRET (Système d'Identification du Répertoire des ETablissements, a French company etablishment identification number) module.
* Add more ISIL testsArthur de Jong2016-05-291-6/+0
| | | | | This moves a few of the tests from the module to a dedicated test file and adds tests for a number of ISIL numbers found online.
* Fix formatting of bulleted listArthur de Jong2016-05-291-0/+1
|
* Fix bug in Swiss SSN validationArthur de Jong2016-05-281-9/+11
| | | | | | | The validation was delegated to the EAN module but the number is supposed to be an EAN-13 only and and EAN-8 was also accepted. This also reformats the docstring.
* 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).
* Fix get_module_description()Arthur de Jong2016-05-281-1/+1
| | | | This fixes the initial implementation in 3f6d52a.
* Add French NIRDimitri Papadopoulos2016-05-271-0/+80
| | | | Add module for NIR also known as social security number.
* Add United Kingdom NHS numberArthur de Jong2016-05-091-0/+85
| | | | | Add module for United Kingdom National Health Service patient identifier.
* Read numdb files in context managerArthur de Jong2016-05-091-2/+2
| | | | | | | This ensures that the file is explicitly closed in the function to avoid "unclosed file" warnings. See: https://github.com/arthurdejong/python-stdnum/issues/33
* Make more information links consistentArthur de Jong2016-04-1117-42/+63
| | | | | Also fix a docstring in stdnum.nl.bsn and add a pointer to stdnum.nl.onderwijsnummer.
* Implement online TC Kimlik checkArthur de Jong2016-04-093-15/+54
| | | | | This refactors out the SOAP client function that was implemented for VIES to the stdnum.utils module.
* Add Turkish personal identification numberArthur de Jong2016-04-092-0/+85
|
* Document accuracy of RFC check digit testArthur de Jong2016-04-011-2/+6
| | | | | | | | There is an online service that allows validating RFC numbers. It seems there are a lot of numbers that do not match the check digit algorithm which confirms disabling the check digit test by default is a good idea. Also see https://github.com/arthurdejong/python-stdnum/issues/32
* Get files ready for 1.3 release1.3Arthur de Jong2016-03-051-2/+2
|
* Update database filesArthur de Jong2016-03-055-269/+213
| | | | This also updates the getcnloc and getiban scripts to use new URLs.
* Integrate information from the wikiArthur de Jong2015-10-309-47/+136
| | | | | | | This adds the information that was previously in the Trac wiki into the source docstrings because the Trac instance is being phased out. This also includes small updates to the ISIL module.
* Fix SOAP client re-useArthur de Jong2015-10-281-1/+1
| | | | | | | This fixes a bug when checking re-use of the global SOAP client object. The object could not be evaluated in boolean context so is no explicitly compared to None. For suds a MethodNotFound exception would be raised for __nonzero__() (which Python uses for boolean comparison).
* Fix problem with check_vies_approx()Lionel Elie Mamane2015-10-281-1/+1
|
* Fix for when ISO 6346 checksum is 10Ronald Paloschi2015-10-161-1/+1
| | | | | | | Bug fix for when the checksum is 10, it was compared to 0 and failed. New doctest exposing the bug that passes after the fix is applied. See: https://github.com/arthurdejong/python-stdnum/pull/30
* Get files ready for 1.2 release1.2Arthur de Jong2015-10-111-1/+17
|
* Update database filesArthur de Jong2015-10-115-355/+487
| | | | This also updates the script to download updated Chinese location names.
* Code style improvementsArthur de Jong2015-10-1118-45/+50
| | | | | | | 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.
* Convert security ids to ISINArthur de Jong2015-10-114-0/+33
| | | | | Allow conversion from national securities identifiers to the international ISIN.
* Add German WertpapierkennnummerArthur de Jong2015-10-111-0/+66
| | | | | The format itself is pretty simple (no check digit) but this module is more for completeness sake.
* Add SEDOL numberArthur de Jong2015-10-101-0/+78
|
* Add information to Russian packageArthur de Jong2015-10-101-0/+21
|
* Move numdb test fileArthur de Jong2015-10-101-1/+1
| | | | This places the test database file in the tests directory.
* Add int. maritime org. number (IMO)Arthur de Jong2015-10-101-0/+85
| | | | | | | This adds checks for the International Maritime Organization number used to identify ships. However, there seem to be a lot of ships with an IMO number that does not follow these rules (different check digits or even length).
* Fix handling of strip_check_digits in ISANArthur de Jong2015-10-101-4/+6
| | | | | | This fixes the compact() function to honor the strip_check_digits argument and does not validate the check digits if they are passed to validate together with strip_check_digits.
* Add international securities id (ISIN)Arthur de Jong2015-10-101-0/+116
| | | | | | This adds support for handling ISINs (International Securities Identification Number). The can contain a CUSIP but performing this additional validation is currently not performed.
* Add CUSIP numberArthur de Jong2015-10-091-0/+80
|
* Add Swiss UID and VAT numbersArthur de Jong2015-10-082-0/+169
| | | | | | The Swiss VAT number (MWST, TVA, IVA, TPV) is the UID (Unternehmens-Identifikationsnummer) followed by one of the VAT abbreviations.