Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum
Commit message (Collapse)AuthorAgeFilesLines
* Get files ready for 1.10 release1.10Arthur de Jong2018-10-147-215/+269
|
* Raise InvalidComponent on unknown IBAN countryArthur de Jong2018-10-141-1/+3
| | | | | | This partially reverts 58ea7b2. Closes https://github.com/arthurdejong/python-stdnum/issues/82
* Fix issue with minimal IBANArthur de Jong2018-10-091-1/+1
| | | | | | | | This ensures that an IBAN with a missing bban part and unknown country code (while still having a valid MOD 97,10 checksum) is considered valid. Closes https://github.com/arthurdejong/python-stdnum/issues/84
* Bitcoin addressArthur de Jong2018-09-301-0/+159
| | | | | | | This adds validation of Bitcoin addresses. No check is done that the addresses actually exist but only that they are syntactically correct. Closes https://github.com/arthurdejong/python-stdnum/issues/80
* Add vat alias for RussiaLevin Rickert2018-09-211-0/+3
|
* 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
* Add Norwegian bank account numberArthur de Jong2018-08-222-0/+184
| | | | | | | This includes validation of Norwegian bank account numbers and conversion to IBAN. Closes https://github.com/arthurdejong/python-stdnum/issues/79
* Add Mauritian national ID numberArthur de Jong2018-08-082-0/+115
| | | | | | | Thans to Bradley Smith for providing the needed information to implement this. See https://lists.arthurdejong.org/python-stdnum-users/2018/msg00003.html
* Add iso11649 structured creditor referenceEsben Toke Christensen2018-07-221-0/+75
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/72
* Improved texts and added linksPanderMusubi2018-07-225-15/+30
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/75
* Switch the NCF online check to the new formArthur de Jong2018-05-191-19/+37
| | | | | | | This tries to screen-scrape the new DGII form that is used to validate the new format of NCF numbers. Closes https://github.com/arthurdejong/python-stdnum/issues/71
* Fix an issue with format of Mexican tax numbersArthur de Jong2018-05-011-11/+5
| | | | | Fix an issue where the format accepted a mix of personal and company numberer in validation causing in a raised ValueError exception.
* Make unicode conversion standardArthur de Jong2018-05-013-23/+28
| | | | | | 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.
* Get files ready for 1.9 release1.9Arthur de Jong2018-04-149-36/+44
|
* Add an extra test for Belgian IBANsArthur de Jong2018-04-121-2/+1
| | | | | A Belgian IBAN should not end with 00. This also fixes a docstring and comment in the IBAN module.
* Correctly split IMSI with multi-length MNCArthur de Jong2018-04-102-744/+803
| | | | | | | | | | | | Ensures that imsi.split() will correctly split the IMSI into an MCC, MNC and MSIN even if not all MNCs within a single MCC have the same length. This has the downside of not being able to guess the MNC length in some cases. This also omits empty information from the data file and updates the data file from Wikipedia. Closes https://github.com/arthurdejong/python-stdnum/issues/68
* Support new style of NCF numbersArthur de Jong2018-04-091-8/+14
| | | | | | | | | This adds support for validating Dominican Republic invoice numbers that should be used since from 2018-05-01. http://www.dgii.gov.do/contribuyentes/personasFisicas/inicioOperaciones/ComprobantesFiscales/Paginas/SecuenciaDeNCF.aspx Closes https://github.com/arthurdejong/python-stdnum/issues/69
* Add Financial Instrument Global IdentifierArthur de Jong2018-03-251-0/+84
|
* Add German company registry numbersArthur de Jong2018-03-232-0/+310
| | | | | Based on the implementation provided by Markus Törnqvist and Lari Haataja of Holvi Payment Services.
* Also ignore other letters with possible umlautArthur de Jong2018-03-231-1/+1
| | | | | | Fixes 98d11a3 Closes https://github.com/arthurdejong/python-stdnum/pull/67
* Add Austrian AbgabenkontonummerArthur de Jong2018-03-182-0/+155
| | | | | | Based on the implementation provided by Mohammed Salman of Holvi. Closes https://github.com/arthurdejong/python-stdnum/pull/50
* Fix import orderArthur de Jong2018-03-171-1/+1
| | | | Fixes ee263a5
* Add Austrian postal codeArthur de Jong2018-03-174-3/+2306
| | | | | This also fixes the name of the Dutch postal_code alias and tunes the tests.
* Add support for Montenegro IBAN formatArthur de Jong2018-03-172-0/+92
| | | | | This adds further checks to the country-specific part of the IBAN for Montenegro IBANs.
* Add German SteuernummerArthur de Jong2018-03-111-0/+199
| | | | | | | | | | Based on the implementation provided by Mohammed Salman of Holvi. This is the old tax number that is being replaced by the Steuerliche Identifikationsnummer. The number has a regional form (which is used most often) and a national form. Closes https://github.com/arthurdejong/python-stdnum/pull/49
* Add validation for "individual" part of hetuEsa Halsti2018-03-111-0/+3
| | | | | | | The range between 900 and 999 is reserved for temporary identifiers and is not given to any real person. Closes https://github.com/arthurdejong/python-stdnum/pull/66
* Add check_dgii() to stdnum.do.cedula moduleArthur de Jong2018-02-191-1/+31
| | | | | | | This exposes the stdnum.do.rnc.check_dgii() in the stdnum.do.cedula module with but rename the rnc result entry to cedula. Closes https://github.com/arthurdejong/python-stdnum/issues/63
* Fix PySimpleSOAP DGII result parsing issueArthur de Jong2018-02-192-3/+9
| | | | | | | | This strips the wrapper that PySimpleSOAP puts around results from the DGII PySimpleSOAP SOAP call. Closes https://github.com/arthurdejong/python-stdnum/issues/64 Closes https://github.com/arthurdejong/python-stdnum/issues/65
* Update the flake8 ignore listArthur de Jong2018-02-1434-38/+38
| | | | | | | | | | | | 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.
* Add test for Belgian IBANsArthur de Jong2018-02-113-5/+6
| | | | | | | | | This adds a test for IBANs that were found online together with a BIC code to test the IBAN to swift code mapping. This also supports some extra separators in IBAN and BIC numbers and fixes a check digit calculation issue in the Belgian account number check digits.
* Add support for Belgian IBAN formatArthur de Jong2018-02-102-0/+288
| | | | | | | This adds further checks to the country-specific part of the IBAN for Belgian IBANs. Closes https://github.com/arthurdejong/python-stdnum/issues/62
* Support spaces in BIC codesArthur de Jong2018-02-101-1/+3
| | | | | BIC codes are sometimes written in a space-separated form this correctly cleans the spaces for compact representation.
* Allow configuring SOAP request timeoutArthur de Jong2018-02-065-35/+47
| | | | | | This adds a timeout parameter to all checks that use a SOAP web service to reduce the blocking time. The default timeout for all checks is 30 seconds.
* Exclude EU country codes from documentationChris Lamb2018-01-071-3/+3
| | | | | | | | | | | | | | Whilst working on the Reproducible Builds effort [0], we noticed that python-stdnum could not be built reproducibly as it relies on a stable set ordering when generating the documentation. This has been filed in Debian as #88652 [0] https://reproducible-builds.org/ [1] https://bugs.debian.org/886522 Closes: https://github.com/arthurdejong/python-stdnum/pull/61 Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
* Get files ready for 1.8.1 release1.8.1Arthur de Jong2018-01-061-1/+1
|
* Get files ready for 1.8 release1.8Arthur de Jong2018-01-031-2/+2
|
* Move get_cc_module() function to package for public useArthur de Jong2018-01-031-0/+3
|
* Try the non-caching zeep client on older versionsArthur de Jong2018-01-031-10/+16
| | | | | | | | This uses the "normal" Client class from zeep if CachingClient is not available (this is the case on older zeep versions). This also records (and documents) the dependencies for SOAP libraries in setup.py.
* Fix Python 2.6 compatibilityArthur de Jong2018-01-012-6/+6
|
* Update database filesArthur de Jong2018-01-015-91/+122
| | | | | Note that the Swift IBAN Registry in txt format is currently unavailable so hasn't been updated.
* Add Indian PANsrikanthlogic2018-01-011-0/+120
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/57
* Correctly quote regular expressionArthur de Jong2017-12-311-2/+2
| | | | Fixes a6ae1d0.
* Use README as package long descriptionArthur de Jong2017-12-311-139/+0
| | | | | This also shortens the stdnum module docstring and updates the Sphinx configuration.
* Add Indian Aadhaarsrikanthlogic2017-12-012-0/+119
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/56
* Add CAS Registry NumberArthur de Jong2017-11-261-0/+76
| | | | This adds validation of the Chemical Abstracts Service Registry Number.
* Add Euro bank notes serial numberArthur de Jong2017-11-221-0/+72
| | | | This adds validation of serial numbers that appear on Euro bills.
* Rename stdnum.iso9362 to stdnum.bicArthur de Jong2017-11-033-68/+106
| | | | | | The new name is more descriptive and easier to remember. This makes stdnum.iso9362 a compatibility module that can be imported with the old name but provides a deprecation warning.
* Support zeep as preferred SOAP libraryArthur de Jong2017-10-221-7/+12
| | | | | | This tries zeep, suds (suds-jurko) and falls back to using pysimplesoap for performing the SOAP requests. From those zeep seems to be the best supported implementation.
* Add tests for the VIES VAT validation functionsArthur de Jong2017-10-221-1/+1
| | | | | | These tests are not normally run as part of the normal test suite and have to be explicitly enabled by setting the ONLINE_TESTS environment variable to avoid overloading these online services.
* Add stdnum.do.ncf.check_dgii()Arthur de Jong2017-10-221-1/+51
| | | | | | This adds functions for querying the Dirección General de Impuestos Internos (DGII) API to check if the RNC and NCF combination provided is valid.