Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for Ghana TINLeandro Regueiro2022-10-152-0/+117
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/326 Closes https://github.com/arthurdejong/python-stdnum/issues/262
* Add CAS Registry NumberArthur de Jong2022-10-151-0/+82
|
* Add support for Montenegro TINLeandro Regueiro2022-10-092-0/+85
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/331 Closes https://github.com/arthurdejong/python-stdnum/issues/223
* Add Faroe Islands V-numberLeandro Regueiro2022-09-252-0/+108
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/323 Closes https://github.com/arthurdejong/python-stdnum/issues/219
* Add North Macedonian ЕДБLeandro Regueiro2022-09-252-0/+120
| | | | | | | | | | | | | | Note that this is implementation is mostly based on unofficial sources describing the format, which match the hundreds of examples found online. https://forum.it.mk/threads/modularna-kontrola-na-embg-edb-dbs-itn.15663/?__cf_chl_tk=Op2PaEIauip6Z.ZjvhP897O8gRVAwe5CDAVTpjx1sEo-1663498930-0-gaNycGzNCRE#post-187048 Also note that the algorithm for the check digit was tested on all found examples, and it doesn't work for all of them, despite those failing examples don't seem to be valid according to the official online search. Closes https://github.com/arthurdejong/python-stdnum/pull/330 Closes https://github.com/arthurdejong/python-stdnum/issues/222
* Fix a couple typos found by codespellDimitri Papadopoulos2022-09-242-2/+2
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/333
* Add Algerian NIF numberLeandro Regueiro2022-09-242-0/+123
| | | | | | | | | This currently only checks the length and whether it only contains digits because little could be found on the structure of the number of whether there are any check digits. Closes https://github.com/arthurdejong/python-stdnum/pull/313 Closes https://github.com/arthurdejong/python-stdnum/issues/307
* Add support for Morocco TINLeandro Regueiro2022-09-112-0/+126
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/226 Closes https://github.com/arthurdejong/python-stdnum/pull/312
* Add Kenyan TINLeandro Regueiro2022-09-112-0/+119
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/300 Closes https://github.com/arthurdejong/python-stdnum/pull/310
* Add support for Tunisia TINLeandro Regueiro2022-09-112-0/+155
| | | | | Closes https://github.com/arthurdejong/python-stdnum/pull/317 Closes https://github.com/arthurdejong/python-stdnum/issues/309
* Fix German OffeneRegister company registry URLArthur de Jong2022-08-151-2/+2
|
* Update database filesArthur de Jong2022-08-1513-768/+2143
|
* Update ISIL download URLArthur de Jong2022-08-151-1/+1
|
* Add extra court alias for german HandelsregisternummerRomuald R2022-08-151-0/+1
| | | | | | | | | Charlottenburg (Berlin) is a valid court representation for Berlin (Charlottenburg). See https://www.northdata.com/VRB+Service+GmbH,+Berlin/Amtsgericht+Charlottenburg+%28Berlin%29+HRB+103587+B Closes https://github.com/arthurdejong/python-stdnum/pull/298
* Use str.zfill() for padding leading zerosArthur de Jong2022-08-157-14/+7
|
* Add Czech bank account numberspetr.prikryl2022-08-142-0/+192
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/295 Closes https://github.com/arthurdejong/python-stdnum/pull/296
* Fix small typovovavili2022-08-131-1/+1
| | | | | | Improper inflection of plurals. Closes https://github.com/arthurdejong/python-stdnum/pull/299
* Put long line flake8 ignores in files instead of globallyArthur de Jong2022-08-1311-11/+11
| | | | | | | | We have some long URLs in the code (mostly in docstrings) and wrapping them does not improve readability (and is difficult in docstrings) so the E501 ignore is now put inside each file instead of globally. Closes https://github.com/arthurdejong/python-stdnum/pull/302
* Fix flake8 errorArthur de Jong2022-08-121-2/+1
| | | | | This stops using not as a function and hopefully also makes the logic clearer.
* Support parsing dates without a day in GS1-128Alexis de Lattre2022-04-091-0/+8
| | | | | | | Date such as '(17)260400' is now properly interpreted as April 30th 2026. Closes https://github.com/arthurdejong/python-stdnum/pull/294
* Compute birth date from Belgian National NumberCédric Krier2022-03-211-4/+19
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/288
* Return check digits in 02-98 range for ISO 7064 Mod 97, 10Arthur de Jong2022-03-211-2/+2
| | | | | | | | | | There are some valid ranges for check digits within ISO 7064 Mod 97, 10 that all result in a valid checksum. This changes the calculated check digits to be in the range from 02 to 98 as is specified for use in IBAN. See https://en.wikipedia.org/wiki/International_Bank_Account_Number#Generating_IBAN_check_digits Closes https://github.com/arthurdejong/python-stdnum/pull/289
* Support special validation of La Post SIRETCédric Krier2022-03-211-2/+13
| | | | | | | See https://fr.wikipedia.org/wiki/Système_d'identification_du_répertoire_des_établissements#Exceptions_pour_le_groupe_La_Poste Closes https://github.com/arthurdejong/python-stdnum/pull/293 Closes https://github.com/arthurdejong/python-stdnum/issues/291
* Fix Python 2.7 compatibility of the testsArthur de Jong2022-02-141-2/+10
| | | | Fixes a9039c1
* Add Classification of Financial InstrumentsArthur de Jong2022-02-132-0/+1624
| | | | | | | This implements parsing of ISO 10962 CFI codes based on the published description of the structure of these numbers. Closes https://github.com/arthurdejong/python-stdnum/issues/283
* Fix problem in numdb with missing sub-propertiesArthur de Jong2022-02-131-6/+8
| | | | | If a numdb data file line contains multiple values or ranges the sub-ranges were only applied to the last value in the range.
* Fix disabling check digit validation of Mexican CURPArthur de Jong2022-01-091-3/+3
| | | | | | | | | The validation functions supported an optional parameter to disable check digit validation in the number that didn't actually affect validation and was most likely accidentally copied from the RFC module. Fixes 50874a9 Closes https://github.com/arthurdejong/python-stdnum/issues/285
* Add Belgian National NumberCédric Krier2022-01-022-0/+94
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/284
* Get files ready for 1.17 release1.17Arthur de Jong2021-10-031-1/+1
|
* Remove South Korean BRN online checkArthur de Jong2021-10-031-14/+0
| | | | | The Korea Fair Trade Commission website now requires solving a CAPTCHA before submitting the request so this is no longer possible.
* Add documentation for Norwegian OrganisasjonsnummerArthur de Jong2021-10-031-0/+5
|
* Update Let's Encrypt R3 intermediate certificateArthur de Jong2021-10-031-82/+64
| | | | | The portal.nalog.gov.by web site serves an incomplete certificate chain and the certificate chain was changed.
* Update database filesArthur de Jong2021-10-0311-817/+2156
|
* Add Indian GSTIN (VAT number)Gaurav Chauhan2021-10-022-0/+164
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/279
* Add Indian EPIC number (Voter ID number)Gaurav Chauhan2021-10-021-0/+89
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/279
* Improve validation and docstrings of Indian numbersGaurav Chauhan2021-10-022-37/+63
| | | | | | | | | This ensures that an Aadhaar cannot be a palindrome and checks the serial part of the PAN to not be all zeros. It also updates some descriptions of PAN holder types and renames the card_holder_type to just holder_type. Closes https://github.com/arthurdejong/python-stdnum/pull/279
* Fix detection of natural RUC valuesArthur de Jong2021-09-191-13/+34
| | | | | | | A natural RUC is the CI plus an establishment number. Both the natural RUC and the public RUC can have a third digit with the value 6. Closes https://github.com/arthurdejong/python-stdnum/issues/267
* Add swedish postcode validatormichele2021-09-122-0/+78
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/271
* Add support for Thai NumbersPiruin Panichphol2021-09-054-0/+300
| | | | | | | | | - TIN Taxpayer Identification Number - PIN Personal Identification Number - MOA Memorandum of Association Number Closes https://github.com/arthurdejong/python-stdnum/issues/118 Closes https://github.com/arthurdejong/python-stdnum/pull/255
* Add ISRC (International Standard Recording Code)Nuno André2021-08-101-0/+93
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/261
* Fix typos found by codespellDimitri Papadopoulos2021-08-106-8/+8
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/269
* Explicilty define exported exceptionsDimitri Papadopoulos2021-08-101-0/+4
| | | | | | LGTM alert: Import pollutes the enclosing namespace See: https://lgtm.com/rules/3980091/ Closes https://github.com/arthurdejong/python-stdnum/pull/270
* Simplify range checking in Norwegian birth numbersDimitri Papadopoulos2021-08-101-2/+2
| | | | | | LGTM alert: Test is always true See: https://lgtm.com/rules/900073/ Closes https://github.com/arthurdejong/python-stdnum/pull/270
* Add CC (Número de Cartão de Cidadão, Portuguese ↵David Vaz2021-07-251-0/+92
| | | | | | Identity number) Closes https://github.com/arthurdejong/python-stdnum/pull/265
* Add new e-CF types to Dominican Republic NCFFRANK ROBERTO CHAVEZ SOSA2021-07-181-0/+2
|
* Fix parsing of empty fields in DGII checkingAndres Rodriguez2021-07-181-2/+2
|
* Add ENCF validation support for Dominican Republic NCFCristopher Ortega2021-07-181-4/+35
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/248
* Improve French NIF validationDimitri Papadopoulos2021-07-181-5/+11
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/266
* Ignore N818 because our exceptions are not named errorArthur de Jong2021-07-181-4/+4
|
* Only process the shortest matches in the numdb moduleArthur de Jong2021-04-111-71/+31
| | | | | | | | | | | | | | This ensures that matching numbers is done consistently when the numdb database file has conflicting information about the length of numbers. This also refactors the _find() function to be simpler and reduces the number of recursive calls that have to be done. The tests have been re-formatted to use pprint to make it easier to spot differences if any of the tests fail (instead of just saying expected True, got False). Closes https://github.com/arthurdejong/python-stdnum/issues/257