Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/nl
Commit message (Collapse)AuthorAgeFilesLines
* Use HTTPS in URLs where possibleArthur de Jong2022-11-131-1/+1
|
* Use str.zfill() for padding leading zerosArthur de Jong2022-08-151-3/+1
|
* Support new btw-identificatienummerArthur de Jong2020-01-091-8/+21
| | | | | | | | | | | | | | | | | | | | | | The btw-identificatienummer has been introduced on January 1st 2020 in the Netherlands as an alternative to the btw-nummer that contains the BSN personal identifier. The number has the same structure and function but does not contain a BSN and uses a different check digit algorithm. Thanks to Cas Vissers, Jeroen van Heiningen, Jerome Hanke, Nicolas Martinelli, Ronald Portier and Tim Muller for contributing to the fix. More information: * http://kleineondernemer.nl/index.php/nieuw-btw-identificatienummer-vanaf-1-januari-2020-voor-eenmanszaken * https://nl.wikipedia.org/wiki/Btw-nummer_(Nederland) * https://www.belastingdienst.nl/wps/wcm/connect/bldcontenten/belastingdienst/business/vat/new-vat-id/ * https://www.belastingdienst.nl/wps/wcm/connect/bldcontentnl/belastingdienst/zakelijk/btw/administratie_bijhouden/btw_nummers_controleren/uw_btw_nummer Closes https://github.com/arthurdejong/python-stdnum/issues/182 Closes https://github.com/arthurdejong/python-stdnum/pull/183 Closes https://github.com/arthurdejong/python-stdnum/pull/184 Closes https://github.com/arthurdejong/python-stdnum/pull/185
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-293-5/+6
| | | | | | | | | | | The problem with the latter is that it will also accept all kinds of unicode digits that are not the ASCII 0-9 digits causing all kinds of problems in check digit calculations. Some of these unicode characters are also considered digits by int() but some are not (such as the SUPERSCRIPT TWO unicode character). Closes https://github.com/arthurdejong/python-stdnum/issues/96
* Improved texts and added linksPanderMusubi2018-07-225-15/+30
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/75
* Add Austrian postal codeArthur de Jong2018-03-171-2/+2
| | | | | This also fixes the name of the Dutch postal_code alias and tunes the tests.
* Update the flake8 ignore listArthur de Jong2018-02-141-2/+2
| | | | | | | | | | | | Re-enable the flake8 test for unused imports by explicitly marking imports for namespace purposes. This allows us to remove a few unused imports. A few more cleanups that allow us to reduce the number of ignored flake8 ignored tests. The remaining ignored tests are now documented. Ignore a flake8 warning about print statements because we use print in the update scripts.
* Make import ordering consistentArthur de Jong2017-09-111-1/+1
|
* Docstring improvementsArthur de Jong2017-09-115-23/+17
|
* Switch to HTTPS URLsArthur de Jong2017-04-131-2/+2
|
* Make more information links consistentArthur de Jong2016-04-112-4/+9
| | | | | Also fix a docstring in stdnum.nl.bsn and add a pointer to stdnum.nl.onderwijsnummer.
* Integrate information from the wikiArthur de Jong2015-10-301-3/+9
| | | | | | | This adds the information that was previously in the Trac wiki into the source docstrings because the Trac instance is being phased out. This also includes small updates to the ISIL module.
* Code style improvementsArthur de Jong2015-10-111-1/+1
| | | | | | | Ensure that regular expressions are r'' strings, avoid too long lines and fix line wrapping. Also avoid catching toplevel Exception when possible and use binascii for hex to binary conversion which is available in both Python 2 and 3.
* Add a Dutch postal code moduleArthur de Jong2013-11-102-2/+80
| | | | | | | | The Dutch postal code (postcode) consists of four digits followed by two characters and together with the house number should uniquely identify any address. Addresses trac ticket #7.
* Add a Dutch Brin number moduleArthur de Jong2013-11-091-0/+80
| | | | | | | The Brin (Basis Registratie Instellingen) is a number to identify schools and related institutions. Addresses trac ticket #6.
* Clarify onderwijsnummer descriptionArthur de Jong2013-11-091-4/+4
|
* Implement validate() for Dutch numbersArthur de Jong2013-06-083-39/+88
|
* Revert generating stdnum docstring dynamicallyArthur de Jong2013-06-071-1/+1
| | | | | | | | | | | | | Generating the docstring dynamically results in all stdnum modules being imported for every import from any stdnum module which is a performance hit. So we switch back to a manually generated list, using: from stdnum.util import get_module_list print '\n'.join(get_module_list()) This also shortens a few short descriptions to attempt to fit things on one line.
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-263-13/+23
| | | | | | usable format git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
* for all countries, provide vat as an alias for the local ↵Arthur de Jong2012-02-191-0/+3
| | | | | | vat identifier git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@153 9dea7c4f-944c-4273-ac1a-574ede026edc
* give all packages a descriptionArthur de Jong2012-02-191-0/+21
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@152 9dea7c4f-944c-4273-ac1a-574ede026edc
* remove stdnum.nl.vat alias moduleArthur de Jong2012-02-191-22/+0
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@151 9dea7c4f-944c-4273-ac1a-574ede026edc
* also make the stdnum.nl.btw module available as ↵Arthur de Jong2012-02-101-0/+22
| | | | | | stdnum.nl.vat git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@107 9dea7c4f-944c-4273-ac1a-574ede026edc
* fix number in test and ensure that number is not all zeroesArthur de Jong2012-02-101-3/+3
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@106 9dea7c4f-944c-4273-ac1a-574ede026edc
* implement a stdnum.util module for holding utility ↵Arthur de Jong2012-02-043-4/+8
| | | | | | functions (for now clean()) git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@100 9dea7c4f-944c-4273-ac1a-574ede026edc
* rename calc_checksum() to checksum() for consistencyArthur de Jong2012-02-042-4/+4
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@98 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a BTW (the Dutch VAT number) moduleArthur de Jong2012-02-021-0/+52
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@96 9dea7c4f-944c-4273-ac1a-574ede026edc
* add an onderwijsnummer (Dutch school number) moduleArthur de Jong2012-02-022-4/+51
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@95 9dea7c4f-944c-4273-ac1a-574ede026edc
* make source code layout follow PEP8 moreArthur de Jong2011-08-191-3/+6
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@76 9dea7c4f-944c-4273-ac1a-574ede026edc
* move bsn module inside nl packageArthur de Jong2011-01-152-0/+60
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@44 9dea7c4f-944c-4273-ac1a-574ede026edc