Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix for when ISO 6346 checksum is 10Ronald Paloschi2015-10-162-1/+3
| | | | | | | 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-1123-4/+472
|
* Update database filesArthur de Jong2015-10-116-357/+488
| | | | 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-112-0/+299
| | | | | The format itself is pretty simple (no check digit) but this module is more for completeness sake.
* Add SEDOL numberArthur de Jong2015-10-102-0/+333
|
* Add information to Russian packageArthur de Jong2015-10-101-0/+21
|
* Move numdb test fileArthur de Jong2015-10-103-2/+2
| | | | 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-102-4/+18
| | | | | | 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-102-0/+459
| | | | | | 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-092-0/+329
|
* Add Swiss UID and VAT numbersArthur de Jong2015-10-084-0/+420
| | | | | | The Swiss VAT number (MWST, TVA, IVA, TPV) is the UID (Unternehmens-Identifikationsnummer) followed by one of the VAT abbreviations.
* Add Mexican RFC numberArthur de Jong2015-10-053-0/+705
| | | | | | | | | | This adds support for the Mexican tax number RFC (Registro Federal de Contribuyentes). This module includes a number of checks on the number but the validation of the last check digit is disabled by default because a large number of numbers were found that were otherwise valid but had an invalid check digit.
* Move finding VAT module to utilArthur de Jong2015-10-052-6/+22
| | | | | This moves the finding of a VAT module to the util module so that it can be more easily re-used for non-EU countries.
* Update Colombian NIT checksArthur de Jong2015-10-052-19/+308
| | | | | | | | | This adds a number of tests for numbers found online. The length check has also been revisited because both shorter numbers and longer number have been found. This also updates the format() function to handle arbitrary length numbers.
* Fix commentArthur de Jong2015-10-051-1/+1
|
* Use zip() instead of enumerate()Arthur de Jong2015-10-0522-38/+38
| | | | Makes the code slightly simpler and more compact.
* Add alias to hetu in for finnish personal id codeSergio Isidoro2015-10-051-0/+1
|
* Add more numbers found onlineArthur de Jong2015-10-051-8/+51
|
* Add Polish REGON numberDariusz Choruzy2015-09-272-0/+199
|
* Add Polish PESEL numberDariusz Choruzy2015-09-261-0/+121
|
* Add Russioan ИНН (INN) tax IDArthur de Jong2015-08-163-0/+152
| | | | | | | This adds a basic implementation of the Russian Идентификационный номер налогоплательщика (tax identification number). This currently only checks the format, length and check digits but not whether each of the parts of the number are valid (e.g. valid region specified).
* Add Brazillian CNPJ business identifierArthur de Jong2015-08-162-0/+146
| | | | | Add module for Cadastro Nacional da Pessoa Jurídica, the Brazillian company identifier.
* Update IBAN testsArthur de Jong2015-08-163-72/+90
| | | | | | This updates the iban.dat file from the IBAN registry, includes a fix for handling spaces in the BBAN and adds some more IBAN examples from the IBAN registry.
* Make uppercase in compact()Arthur de Jong2015-08-161-5/+3
| | | | | This changes the compact() function of the ISO 9362 module to make all the letters uppercase.
* Turn on and improve branch coverageArthur de Jong2015-08-169-3/+14
|
* Small typo and code style fixesArthur de Jong2015-08-163-5/+5
|
* Add validation of Estonian personal IDTomas Karasek2015-08-162-0/+238
|
* Add company register number validation for AustriaLari Haataja2015-07-121-0/+70
|
* Merge Finnish numbers provided by HolviArthur de Jong2015-07-123-0/+159
|\ | | | | | | | | This merges the Finnish numbers provided by Holvi Payment Services Oy as found here: https://github.com/holvi/python-stdnum
| * Split out format() functionArthur de Jong2015-07-121-13/+17
| | | | | | | | | | | | This uses the stdnum.fi.alv module more extensively and ensures that validate() returns a compact representation and a separate format() function is available.
| * Add validation for Finnish y-tunnus (business identifier)Lari Haataja2015-07-122-0/+61
| |
| * Add a whitelist for short numbers and fix APIArthur de Jong2015-07-121-23/+41
| | | | | | | | | | | | This implements separate functions compact() and format() and fixes the doctests. This also implements a whitelist of registered short numbers to avoid accidentally validating just any number.
| * Validation for Finnish association identifierLari Haataja2015-07-121-0/+76
|/
* Merge changes to use CN Open DataArthur de Jong2015-07-122-74/+301
|\
| * Download and generate latest Chinese location data.Jiangge Zhang2015-06-081-2/+248
| |
| * Download GB2260 data from github.com/cn.Jiangge Zhang2015-06-081-71/+54
| |
* | Fall back to pysimplesoap if suds is unavailableArthur de Jong2015-07-121-4/+10
| | | | | | | | | | Initial testing seems to suggest that proxy-support is not complete with pysimplesoap (at least httplib2 and PySocks seem to be required).
* | Implement alternate VIES checkLionel Elie Mamane2015-07-121-12/+35
| | | | | | | | | | | | | | | | Add a function to stdnum.eu.vat so that when one does a VIES VAT number check, one gets a proof (certificate) that one did the check, as defence against the VAT administration later putting this in doubt. This certificate is provided by the VIES service, if one provides one's own VAT number.
* | Fix copyright headerArthur de Jong2015-04-271-1/+1
|/
* Get files ready for 1.1 release1.1Arthur de Jong2015-04-2719-6/+305
|
* Update database filesArthur de Jong2015-04-276-508/+648
| | | | This also updates the script to download updated Chinese location names.
* Add support for SE orgnrTomas Thor Jonsson2015-04-272-7/+78
| | | | | This also delegates some of the validation for the Swedish VAT module to the orgnr module.
* Add extra tests for the stdnum.ec.ruc moduleArthur de Jong2015-04-271-1/+185
| | | | These numbers were found in various online sources.
* Add extra test for French TVAArthur de Jong2015-04-271-1/+5
|
* Change description of Greek FPA numberP. Christeas2015-04-241-1/+1
| | | | | In Greece, our VAT number is used as a generic "tax registration" num. Update the docstring to reflect that name.
* Add Argentinian CUIT (VAT) numberArthur de Jong2015-04-233-0/+340
| | | | Based partially on the implementation in the vatnumber module.
* Add San Marino COE (VAT) numberArthur de Jong2015-04-232-0/+103
| | | | Based partially on the implementation in the vatnumber module.