Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum
Commit message (Collapse)AuthorAgeFilesLines
...
* Add Mexican RFC numberArthur de Jong2015-10-052-0/+174
| | | | | | | | | | 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-051-19/+10
| | | | | | | | | 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 Polish REGON numberDariusz Choruzy2015-09-271-0/+95
|
* Add Polish PESEL numberDariusz Choruzy2015-09-261-0/+121
|
* Add Russioan ИНН (INN) tax IDArthur de Jong2015-08-162-0/+93
| | | | | | | 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-161-0/+86
| | | | | Add module for Cadastro Nacional da Pessoa Jurídica, the Brazillian company identifier.
* Update IBAN testsArthur de Jong2015-08-161-1/+2
| | | | | | 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-168-3/+13
|
* Small typo and code style fixesArthur de Jong2015-08-163-5/+5
|
* Add validation of Estonian personal IDTomas Karasek2015-08-161-0/+113
|
* Add company register number validation for AustriaLari Haataja2015-07-121-0/+70
|
* 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-121-2/+248
|\
| * Download and generate latest Chinese location data.Jiangge Zhang2015-06-081-2/+248
| |
* | 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.
* Get files ready for 1.1 release1.1Arthur de Jong2015-04-271-3/+16
|
* Update database filesArthur de Jong2015-04-275-501/+636
| | | | 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 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-232-0/+104
| | | | 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.
* Add Colombian NIT/RUT (VAT) codeArthur de Jong2015-04-232-0/+117
| | | | Based on the implementation in the vatnumber module.
* Add Chilean national tax number (RUT)Arthur de Jong2015-04-232-0/+116
| | | | Based on the implementation in the vatnumber module.
* Add Albanian NIPT (VAT) numberArthur de Jong2015-04-232-0/+104
| | | | | | | Partially based on the implementation in the vatnumber module. Some valid numbers appear to start with an L so those are allowed as well.
* Extend the list of valid CedulaArthur de Jong2015-04-231-84/+80
| | | | | | This is based on the list of Cedula found at http://prd.org.do/2013/07/30/lista-del-cen-del-prd-actualizada-y-registrada-en-la-junta-central-electoral/ (link provided by José Arturo García)
* Add Dominican Republic Cedula numberArthur de Jong2015-04-221-0/+160
| | | | | | | | | The Cedule is a Dominican Republic national identification number for persons. The number uses the Luhn checksum but apparently there are a lof of valid numbers in use that do not match the checksum. For this a whitelist is used.
* Add Dominican Republic RNC numberArthur de Jong2015-04-222-0/+102
| | | | | The RNC (Registro Nacional del Contribuyente) is the Dominican Republic taxpayer registration number for companies.
* Add more tests for KennitalaArthur de Jong2015-04-191-0/+2
|
* Support Icelandic personal, organisation and VAT identifiersTuomas Toivonen2015-04-183-0/+201
| | | | The package is named "is_" because "is" is a reserved word.
* Add support for Norwegian organisation and VAT numbersTuomas Toivonen2015-04-173-0/+176
| | | | | This commit also includes changes from Tomas Thor Jonsson <benregn@gmail.com>.
* Add ISO 9362 (BIC) supportTony Bajan2015-04-171-0/+86
|
* Raise InvalidComponent for unregistered IMSIArthur de Jong2015-04-171-3/+3
|
* Adding HR (Croatia) to the list of available countriesEmiliano Castro2015-04-172-1/+4
|
* Fix common spelling mistakeArthur de Jong2014-11-016-7/+7
|
* Fix for invalidating MEIDs with invalid decimal bit lengthMatt McDonald2014-11-011-1/+5
| | | | See: http://arthurdejong.org/trac/python-stdnum/ticket/10
* Get files ready for 1.0 release1.0Arthur de Jong2014-10-191-2/+10
|
* Remove unused importArthur de Jong2014-10-191-1/+0
|
* Update database filesArthur de Jong2014-10-194-553/+782
|
* Adds the Swiss social security numberDenis Krienbühl2014-10-192-0/+93
| | | | Also known as "Sozialversicherungsnummer" / "Neue AHV Nummer".
* Only catch ExceptionArthur de Jong2014-10-1811-11/+11
|