Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/es
Commit message (Collapse)AuthorAgeFilesLines
* Add Spanish postcode validatorVictor2023-04-291-0/+84
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/401
* Use HTTPS in URLs where possibleArthur de Jong2022-11-131-2/+2
|
* Use HTTPS in URLs where possibleArthur de Jong2020-03-202-2/+2
|
* Improve descriptions of Spanish codesGerard Dalmau2019-10-165-7/+15
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/169
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-296-12/+14
| | | | | | | | | | | 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
* Improve CIF and NIF validationGerard Dalmau2018-08-302-11/+15
| | | | | | | | NIF starting with K, L or M are NIF instead of CIF. This also adds NIF-DNI-CIF-NIE classification tests. Closes https://github.com/arthurdejong/python-stdnum/pull/81
* Make unicode conversion standardArthur de Jong2018-05-011-10/+3
| | | | | | A few modules use non-ASCII characters in numbers. This introduces a to_unicode() function in util so that it can be used by multiple modules.
* Update the flake8 ignore listArthur de Jong2018-02-141-1/+1
| | | | | | | | | | | | 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.
* Minor code improvements (mostly PEP8)Arthur de Jong2017-09-112-3/+2
|
* Make import ordering consistentArthur de Jong2017-09-111-1/+1
|
* Docstring improvementsArthur de Jong2017-09-118-29/+29
|
* Add missing export (__all__)Arthur de Jong2017-04-101-2/+2
|
* 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 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
* Add Spanish IBAN number moduleArthur de Jong2016-09-101-0/+79
| | | | This validates the country-specific part of the IBAN.
* Add to_iban() function to Spanish CCCArthur de Jong2016-09-101-0/+11
|
* 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-031-0/+113
|
* Implement validate() for Spanish numbersArthur de Jong2013-06-084-70/+134
|
* ensure that the module docstrings are in a somewhat more ↵Arthur de Jong2012-02-264-10/+14
| | | | | | 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
* use the luhn module where possibleArthur de Jong2012-02-121-6/+3
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@126 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a NIF (Número de Identificación Fiscal, Spanish ↵Arthur de Jong2012-02-111-0/+71
| | | | | | VAT number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@115 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a CIF (Certificado de Identificación Fiscal, ↵Arthur de Jong2012-02-111-0/+91
| | | | | | Spanish tax identification number) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@114 9dea7c4f-944c-4273-ac1a-574ede026edc
* fix description and remove unnecessary importArthur de Jong2012-02-111-2/+2
| | | | git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@112 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a NIE (Número de Identificación de Extranjeros, ↵Arthur de Jong2012-02-101-0/+60
| | | | | | Spanish identification number for foreigners) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@111 9dea7c4f-944c-4273-ac1a-574ede026edc
* add a DNI (Documento nacional de identidad, Spanish ↵Arthur de Jong2012-02-102-0/+59
personal identity codes) module git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@110 9dea7c4f-944c-4273-ac1a-574ede026edc