Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix bug in damm.is_valid() functionArthur de Jong2017-04-131-2/+2
|
* Get files ready for 1.6 release1.6Arthur de Jong2017-04-1112-8/+218
|
* Update database filesArthur de Jong2017-04-105-216/+320
|
* Add simple online check exampleArthur de Jong2017-04-106-0/+9494
| | | | | | This adds the code that is used to find formats for which a supplied number is valid. This is the code that is used on https://arthurdejong.org/python-stdnum/check/
* Add Legal Entity IdentifierArthur de Jong2017-04-102-0/+202
|
* 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-103-0/+221
|
* Print warnings during tox runArthur de Jong2017-04-101-0/+2
|
* 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-012-0/+206
|
* Add unicode robustness testsArthur de Jong2017-04-012-3/+5
| | | | This tests a few unicode strings and fixes a bug in the MEID module.
* Add test for Ñ in Referencia CatastralArthur de Jong2017-04-012-5/+36
| | | | | | | | | | | 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-264-2/+1184
| | | | | 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-254-3/+118
| | | | | | | 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-152-0/+165
| | | | See https://github.com/arthurdejong/python-stdnum/issues/43
* Add Python 2.6 supportArthur de Jong2016-11-145-6/+15
| | | | | 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-1312-23/+269
|
* Update database filesArthur de Jong2016-11-136-343/+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.
* Update getisbn to Python3Arthur de Jong2016-11-131-5/+5
| | | | | There were some SSL-related issues with the urllib module. This was the easiest solution.
* Update gettin IBAN registryArthur de Jong2016-11-131-30/+32
| | | | | | The format of the registry file has changed. Before it was a straightforward CSV file with countries in rows but countries are now in columns.
* Add tox.ini fileSergi Almacellas Abellana2016-11-132-3/+11
|
* 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-142-0/+130
| | | | | | | 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-142-0/+216
| | | | | | | 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-143-0/+242
| | | | | | | 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 more tests for Referencia CatastralArthur de Jong2016-09-101-0/+295
| | | | | | | | | | | This adds a number of extra tests for the Spanish Referencia Catastral (stdnum.es.referenciacatastral) module, mostly based on numbers found online. This commit includes some of the documentation on the structure of Referencia Catastral that was in the original pull request. See https://github.com/arthurdejong/python-stdnum/pull/38
* 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
* Test a few Spanish IBANs found onlineArthur de Jong2016-09-101-0/+24
|
* Avoid leaving open file descriptor in testArthur de Jong2016-09-101-1/+2
|
* Add Spanish IBAN number moduleArthur de Jong2016-09-102-0/+91
| | | | 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.
* 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-032-0/+196
|
* 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-2611-4/+270
|
* Update database filesArthur de Jong2016-07-266-286/+330
| | | | 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-263-2/+189
| | | 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
|