Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum
Commit message (Collapse)AuthorAgeFilesLines
* Get files ready for 1.7 release1.7Arthur de Jong2017-09-121-1/+7
|
* Add example with custom table to DammArthur de Jong2017-09-121-0/+13
|
* Update database filesArthur de Jong2017-09-115-181/+215
|
* Minor code improvements (mostly PEP8)Arthur de Jong2017-09-1114-20/+27
|
* Make import ordering consistentArthur de Jong2017-09-1118-19/+18
|
* Docstring improvementsArthur de Jong2017-09-11134-608/+535
|
* Fix Czech DIČ check digit calculationArthur de Jong2017-09-081-3/+3
| | | | | | | | This fixes a bug in the check digit calculation for the 9-digit numbers that start with a 6 for individuals without a RČ. This also adds a few tests for Czech VAT numbers. See https://github.com/arthurdejong/python-stdnum/issues/51
* Add Estonian RegistrikoodArthur de Jong2017-09-041-0/+84
| | | | | | | | | This is based on what was done by Mohammed Salman of Holvi. This adds more tests and validates the check digit. This uses the check digit algorithm from Isikukood which seems to work with all tested numbers although there is no confirmation that this is the correct algorithm.
* Add support for German tax id numberMohammed Salman2017-09-031-0/+94
|
* Check bookland code in ISBNArthur de Jong2017-08-301-1/+3
| | | | | | This ensures that an InvalidComponent() exception is raised when an unknown EAN bookland code is found. It will also raise this exception when using to_isbn10() when not using the 978 code.
* Ensure 100% branch coverageArthur de Jong2017-08-285-24/+12
| | | | | | | | | | | This ensures that the tests fail if 100% branch coverage is not achieved. It also adds some pragma statements for code that cannot be covered or is Python version dependent. Furthermore, the get_module_list() function was removed from stdnum.util and more tests were made from stdnum.util and stdnum.numdb. The functionality to call format() in a country-specific IBAN implementation was also dropped because it was not used.
* Add English Unique Pupil Number (UPN)Arthur de Jong2017-08-271-0/+109
|
* Add Canadian Business Number (BN)Arthur de Jong2017-08-261-0/+80
|
* Add Canadian Social Insurance Number (SIN)Arthur de Jong2017-08-262-0/+101
|
* Implement Finnish individual tax number validationMohammed Salman2017-08-201-0/+74
|
* Use slightly more compact codeArthur de Jong2017-06-021-5/+1
| | | | | This changes the alphanumeric to numeric translation to be slightly more compact and slightly faster.
* An ISMN can only be 10 or 13 digitsArthur de Jong2017-04-151-2/+6
| | | | This also adds the test that an ISMN should start with 9790.
* Fix conversion of 9 digit ISBN to ISBN13Arthur de Jong2017-04-151-2/+4
|
* Switch to HTTPS URLsArthur de Jong2017-04-138-15/+15
|
* Fix bug in damm.is_valid() functionArthur de Jong2017-04-131-2/+2
|
* Get files ready for 1.6 release1.6Arthur de Jong2017-04-111-3/+9
|
* Update database filesArthur de Jong2017-04-105-216/+320
|
* Add Legal Entity IdentifierArthur de Jong2017-04-101-0/+68
|
* Integrate base10 conversion into Mod 97, 10Arthur de Jong2017-04-102-23/+19
| | | | | | This moves the conversion of an alphanumeric string to a numeric representation for modulo 97 calculation to the mod_97_10 module because this mechanism seems to be used by multiple formats.
* Add missing export (__all__)Arthur de Jong2017-04-101-2/+2
|
* Add Serbian Poreski Identifikacioni BrojArthur de Jong2017-04-102-0/+87
|
* Use a slightly more readable weight alternationArthur de Jong2017-04-075-10/+10
| | | | | Switch to a slightly more readable syntax for alternating between two weights in checksums calculations.
* Add European EIC (Energy Identification Code)Arthur de Jong2017-04-011-0/+88
|
* Add unicode robustness testsArthur de Jong2017-04-011-2/+2
| | | | This tests a few unicode strings and fixes a bug in the MEID module.
* Add test for Ñ in Referencia CatastralArthur de Jong2017-04-011-4/+13
| | | | | | | | | | | This supports the Referencia Catastral with an Ñ in it for both byte strings (Python 2) and unicode strings (Python 2 and 3). Support for literal unicode strings in Python 2 doctests is flaky so the test is a bit ugly. This also adds a few numbers that were found online. Sadly no real numbers with an Ñ in it have been found so the one in the test was constructed.
* Add European NACE classificationArthur de Jong2017-03-262-0/+1108
| | | | | This number is used to classify business. Validation is done based on a downloaded registry.
* Remove unused importArthur de Jong2017-03-261-1/+0
|
* Add support for Monaco VAT numberArthur de Jong2017-03-253-2/+93
| | | | | | | The number uses the French TVA number but, unlike normal French VAT numbers, they are not valid French SIREN numbers. See https://github.com/arthurdejong/python-stdnum/issues/46
* Remove unused importArthur de Jong2016-12-111-2/+0
|
* Add new 47 EIN prefix; fix duplicate 46; move 81Greg Kuwaye2016-12-111-2/+2
| | | | | | | | | 47 appears to be a new Internet campus code. Prefix 46 was listed twice, once under the Philadelphia campus and again under the Internet campus. This error may be seen on the IRS website itself. The Wikipedia article on EIN (https://en.wikipedia.org/wiki/Employer_Identification_Number) does not have 46 listed twice. 81 has moved from the Philadelphia campus to the Internet campus.
* Implement CBU (unique bank code) of ArgentinaLuciano Rossi2016-11-151-0/+86
| | | | See https://github.com/arthurdejong/python-stdnum/issues/43
* Add Python 2.6 supportArthur de Jong2016-11-142-4/+12
| | | | | This also brings the list of Python versions in setup.py in line with tox.ini.
* Get files ready for 1.5 release1.5Arthur de Jong2016-11-131-2/+9
|
* Update database filesArthur de Jong2016-11-135-342/+488
| | | | | | This removes the Costa Rica IBAN test because the format of the IBAN seems to have been changed. The old length still seems to be in use so a more permanent solution is probably required.
* Implement calc_check_digits in SEPA Identifier of the ↵Sergi Almacellas Abellana2016-11-131-7/+19
| | | | Creditor (AT-02)
* Add Australian Tax File NumberArthur de Jong2016-10-141-0/+88
| | | | | | | Based on the implementation provided by Vincent Bastos <vincent@lavalab.com.au> See https://github.com/arthurdejong/python-stdnum/pull/40
* Add Australian Company NumberArthur de Jong2016-10-141-0/+91
| | | | | | | Based on the implementation provided by Vincent Bastos <vincent@lavalab.com.au> See https://github.com/arthurdejong/python-stdnum/pull/40
* Add Australian Business NumberArthur de Jong2016-10-142-0/+106
| | | | | | | Based on the implementation provided by Vincent Bastos <vincent@lavalab.com.au> See https://github.com/arthurdejong/python-stdnum/pull/40
* Provide businessid as an aliasArthur de Jong2016-10-142-3/+10
| | | | | The Belgian company number or enterprise number (ondernemingsnummer) is the new name for what was previously the VAT number.
* Add reference to Referencia Catastral implementationArthur de Jong2016-09-101-0/+4
|
* Add Spansih Referencia CatastralDavid García Garzón2016-09-101-0/+114
| | | | | | | | The control digit check algorithm is based on Javascript implementation by Vicente Sancho that can be found at http://trellat.es/validar-la-referencia-catastral-en-javascript/ See https://github.com/arthurdejong/python-stdnum/pull/38
* Avoid leaving open file descriptor in testArthur de Jong2016-09-101-1/+2
|
* Add Spanish IBAN number moduleArthur de Jong2016-09-101-0/+79
| | | | This validates the country-specific part of the IBAN.
* Validate country-specific part of IBANArthur de Jong2016-09-101-6/+27
| | | | | | This adds the possible of validating the country-specific part of the IBAN. If the country has an IBAN module, checking is also delegated to that module.
* Introduce get_cc_module() utility functionArthur de Jong2016-09-102-16/+15
| | | | | | This changes the get_vat_module() function to a more generic get_cc_module() function so that it can also be used for other things like IBAN checking.