Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum
Commit message (Collapse)AuthorAgeFilesLines
* Get files ready for 1.20 releaseHEAD1.20masterArthur de Jong2024-03-171-2/+2
|
* Update database filesArthur de Jong2024-03-1711-600/+4592
| | | | | | | | | | | | | | The Belgian bpost bank no longer has a registration and a few bank account numbers in the tests that used that bank were removed. Also updates the update/gs1_ai.py script to handle the new format of the data published by GS1. Also update the GS1-128 module to handle some different date formats. The Pakistan entry was kept in the stdnum/iban.dat file because the PDF version of the IBAN Registry still contains the country. fix db
* Use HTTPS in URLs where possibleArthur de Jong2024-03-171-1/+1
|
* Add Indian virtual identity numberAtul Deolekar2024-03-171-0/+109
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/428
* Fix Ukrainian EDRPOU check digit calculationArthur de Jong2024-03-171-1/+1
| | | | | | | This fixes the case where the weighted sum woud be 10 which should result in a check digit of 0. Closes https://github.com/arthurdejong/python-stdnum/issues/429
* Imporve French NIF validation (checksum)Kevin Dagostino2024-02-251-4/+15
| | | | | | | The last 3 digits are a checksum. % 511 https://ec.europa.eu/taxation_customs/tin/specs/FS-TIN%20Algorithms-Public.docx Closes https://github.com/arthurdejong/python-stdnum/pull/426
* Fix vatin number compacting for "EU" VAT numbersArthur de Jong2024-02-031-2/+5
| | | | | | Thanks Davide Walder for finding this. Closes https://github.com/arthurdejong/python-stdnum/issues/427
* Add European Community (EC) NumberDaniel Weber2023-12-031-0/+83
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/422
* Add British Columbia PHNÖmer Boratav2023-11-261-0/+103
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/421
* Ensure EU VAT numbers don't accept duplicate country codesArthur de Jong2023-11-121-2/+2
|
* Fix typo (thanks Александр Кизеев)Arthur de Jong2023-11-121-1/+1
|
* Get files ready for 1.19 release1.19Arthur de Jong2023-08-201-2/+2
|
* Remove obsolete intermediate certificateArthur de Jong2023-08-202-76/+1
| | | | | The portal.nalog.gov.by web no longer has an incomplete certificate chain.
* Use importlib.resource in place of deprecated pkg_resourcesArthur de Jong2023-08-201-4/+12
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/412 Closes https://github.com/arthurdejong/python-stdnum/pull/413
* Update Belarusian UNP online checkArthur de Jong2023-08-201-2/+2
| | | | | | The API for the online check for Belarusian UNP numbers at https://www.portal.nalog.gov.by/grp/getData has changed some small details of the API.
* Update database filesArthur de Jong2023-08-2010-3641/+1860
| | | | | | | | This also modifies the OUI update script because the website has changed to HTTPS and is sometimes very slow. The Belgian Commerzbank no longer has a registration and a bank account number in the tests used that bank.
* Validate European VAT numbers with EU or IM prefixArthur de Jong2023-08-132-0/+123
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/417
* Add Slovenian Corporate Registration NumberBlaž Bregar2023-08-062-1/+94
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/414
* Fix file headersArthur de Jong2023-08-0616-16/+16
| | | | | This improves consistency across files and fixes some files that had an incorrect file name reference.
* Validate first digit of Canadian SINArthur de Jong2023-07-301-0/+6
| | | | | See http://www.straightlineinternational.com/docs/vaildating_canadian_sin.pdf See https://lists.arthurdejong.org/python-stdnum-users/2023/msg00000.html
* Add Belgian BIS NumberJeff Horemans2023-06-252-3/+131
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/418
* Handle (partially) unknown birthdate of Belgian National ↵Jeff Horemans2023-06-191-13/+78
| | | | | | | | | | Number This adds documentation for the special cases regarding birth dates embedded in the number, allows for date parts to be unknown and adds functions for getting the year and month. Closes https://github.com/arthurdejong/python-stdnum/pull/416
* Minor ISSN and ISBN documentation fixesChales Horn2023-06-172-7/+7
| | | | | | | Fix a comment that claimed incorrect ISSN length and use slightly more consistent terminology around check digits in ISSN and ISBN. Closes https://github.com/arthurdejong/python-stdnum/pull/415
* Add support for Guinea TINLeandro Regueiro2023-05-122-0/+110
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/384 Closes https://github.com/arthurdejong/python-stdnum/pull/386
* Add Spanish postcode validatorVictor2023-04-291-0/+84
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/401
* Add support for Finland HETU new century indicating signsmjturt2023-04-291-3/+3
| | | | | | More information at https://dvv.fi/en/reform-of-personal-identity-code Cloess https://github.com/arthurdejong/python-stdnum/pull/396
* Add functionality to get gender from Belgian National NumberJeff Horemans2023-04-291-5/+23
| | | | | | This also extends the documentation for the number. Closes https://github.com/arthurdejong/python-stdnum/pull/347/files
* Add get_county() function to Romanian CNPRaduBorzea2023-04-021-1/+71
| | | | | | This also validates the county part of the number. Closes https://github.com/arthurdejong/python-stdnum/pull/407
* Fix date formatting on PyPy 2.7Arthur de Jong2023-03-181-2/+2
| | | | | | | The original way of calling strftime was likely an artifact of Python 2.6 support. Fixes 7e84c05
* Extend date parsing in GS1-128Arthur de Jong2023-03-182-32/+45
| | | | | Some new AIs have new date formats or have changed the way optional components of formats are defined.
* Update IBAN database fileDimitri Papadopoulos2023-03-181-0/+1
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/409
* Fix Albanian tax number validationArthur de Jong2023-03-181-5/+16
| | | | | | | | | | | | | | | This extends the description of the Albanian NIPT (NUIS) number with information on the structure of the number. The first character was previously limited between J and L but this letter indicates a decade and the number is also used for individuals to where it indicates a birth date. Thanks Julien Launois for pointing this out. Source: https://www.oecd.org/tax/automatic-exchange/crs-implementation-and-assistance/tax-identification-numbers/Albania-TIN.pdf Fixes 3db826c Closes https://github.com/arthurdejong/python-stdnum/pull/402
* Fix typo in UEN docstringAli-Akber Saifee2023-03-181-1/+1
|
* Add support for Egypt TINLeandro Regueiro2023-01-022-0/+136
| | | | | | | This also convertis Arabic digits to ASCII digits. Closes https://github.com/arthurdejong/python-stdnum/issues/225 Closes https://github.com/arthurdejong/python-stdnum/pull/334
* Fix typos found by codespellDimitri Papadopoulos2022-12-122-2/+2
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/344
* Fix a typovaleriko2022-12-031-1/+1
| | | | Clocses https://github.com/arthurdejong/python-stdnum/pull/341
* Get files ready for 1.18 release1.18Arthur de Jong2022-11-132-9/+7
|
* Update database filesArthur de Jong2022-11-139-240/+622
|
* Update German OffeneRegister lookup data formatArthur de Jong2022-11-131-28/+19
| | | | | It appears that the data structure at OffeneRegister has changed which requires a different query. Data is returned in a different structure.
* Add Pakistani ID card numberArthur de Jong2022-11-132-0/+133
| | | | | | | | Based on the implementation provided by Quantum Novice (Syed Haseeb Shah). Closes https://github.com/arthurdejong/python-stdnum/pull/306 Closes https://github.com/arthurdejong/python-stdnum/issues/304
* Add support for Slovenian EMŠO (Unique Master Citizen ↵Blaž Bregar2022-11-132-0/+120
| | | | | | Number) Closes https://github.com/arthurdejong/python-stdnum/pull/338
* Ensure we always run flake8-bugbearArthur de Jong2022-11-132-2/+2
| | | | | This assumes that we no longer use Python 2.7 for running the flake8 tests any more.
* Use HTTPS in URLs where possibleArthur de Jong2022-11-134-5/+5
|
* Pad with zeroes in a more readable mannerLeandro Regueiro2022-11-131-3/+3
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/340
* Make all exceptions inherit from ValueErrorArthur de Jong2022-11-121-2/+2
| | | | | All the validation exceptions (subclasses of ValidationError) are raised when a number is provided with an inappropriate value.
* Add a check_uid() function to the stdnum.ch.uid moduleArthur de Jong2022-11-121-2/+59
| | | | | | | This function can be used to performa a lookup of organisation information by the Swiss Federal Statistical Office web service. Related to https://github.com/arthurdejong/python-stdnum/issues/336
* Support "I" and "O" in CUSIP numberArthur de Jong2022-11-121-3/+2
| | | | | | | | | It is unclear why these letters were considered invalid at the time of the implementation. This also reduces the test set a bit while still covering most cases. Closes https://github.com/arthurdejong/python-stdnum/issues/337
* Remove unused importArthur de Jong2022-10-191-1/+1
| | | | Fixes 09d595b
* Improve validation of CAS Registry NumberArthur de Jong2022-10-191-4/+11
| | | | This ensures that a leading 0 is treated as invalid.
* Remove duplicate CAS Registry NumberArthur de Jong2022-10-191-82/+0
| | | | | | | The recently added stdnum.cas module was already available as teh stdnum.casrn module. Reverts acb6934