Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/eu
Commit message (Collapse)AuthorAgeFilesLines
* Add European Community (EC) NumberDaniel Weber2023-12-031-0/+83
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/422
* Validate European VAT numbers with EU or IM prefixArthur de Jong2023-08-132-0/+123
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/417
* Update database filesArthur de Jong2022-11-131-1/+1
|
* Update database filesArthur de Jong2022-08-151-1/+1
|
* Put long line flake8 ignores in files instead of globallyArthur de Jong2022-08-131-1/+1
| | | | | | | | 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
* Update database filesArthur de Jong2021-10-031-1/+1
|
* Update database filesArthur de Jong2021-02-061-1/+1
|
* Support xi country code for Northern IrelandArthur de Jong2021-01-211-4/+7
| | | | | | | | | While Great Brittain is no longer an EU member state some GB VAT numbers are still valid if the company meets certain requirements. See https://www.gov.uk/government/publications/accounting-for-vat-on-goods-moving-between-great-britain-and-northern-ireland-from-1-january-2021/check-when-you-are-trading-under-the-northern-ireland-protocol-if-you-are-vat-registered-business Closes https://github.com/arthurdejong/python-stdnum/issues/250
* Update database filesArthur de Jong2021-01-111-1/+1
|
* Remove GB from EU member statesViggo de Vries2021-01-101-3/+3
| | | | Closes https://github.com/arthurdejong/python-stdnum/pull/246
* Fix flake8 blind except Exception errorArthur de Jong2021-01-101-1/+1
|
* Retain RO prefix in Romanian VAT numbersArthur de Jong2020-11-011-4/+12
| | | | | | | | This does not strip the RO prefix from Romanian VAT numbers to be able to keep the distinction between a CUI/CIF that is registered for VAT (which commonly has the RO prefix) and those that don't. Closes https://github.com/arthurdejong/python-stdnum/issues/231
* Make list of EU member states list of public APIArthur de Jong2020-09-191-4/+4
| | | | | | | | This provides stdnum.eu.vat.MEMBER_STATES. Note that Greece is listed with a country code of "gr" while the prefix used in VAT numbers is "el". Closes https://github.com/arthurdejong/python-stdnum/issues/238
* Update database filesArthur de Jong2020-08-091-1/+1
|
* Use HTTPS in URLs where possibleArthur de Jong2020-03-202-2/+2
|
* Use HTTPS instead of HTTP fox VIES lookupsgrzekru2020-03-201-1/+1
| | | | | Closes https://github.com/arthurdejong/python-stdnum/issues/204 Closes https://github.com/arthurdejong/python-stdnum/pull/205
* Update database filesArthur de Jong2020-01-181-1/+1
|
* Broaden noqa docstring exclusionArthur de Jong2019-12-271-1/+1
| | | | | | Nowadays flake8 seems to report this as D401 (First line should be in imperative mood) while before it was D402 (First line should not be the function’s signature).
* Update database filesArthur de Jong2019-10-271-2/+2
| | | | | The BIC for some former Record Bank accounts (now ING Belgium) was changed from HBKABE22 to BBRUBEBB (that of ING).
* Ignore wrong docstring detectionArthur de Jong2019-06-021-1/+1
| | | | Fixes 170e599
* Rename stdnum.eu.nace.label() to get_label()Arthur de Jong2019-06-021-3/+13
| | | | | To be more consistent with other similar functions. This deprecates the old function which now is a wrapper around get_label().
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-292-5/+5
| | | | | | | | | | | 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
* Update database filesArthur de Jong2019-03-101-1/+1
|
* Switch from import-order to isortArthur de Jong2019-03-031-0/+1
|
* Get files ready for 1.10 release1.10Arthur de Jong2018-10-141-1/+1
|
* Get files ready for 1.9 release1.9Arthur de Jong2018-04-141-1/+1
|
* Allow configuring SOAP request timeoutArthur de Jong2018-02-061-8/+9
| | | | | | 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>
* Update database filesArthur de Jong2018-01-011-1/+1
| | | | | Note that the Swift IBAN Registry in txt format is currently unavailable so hasn't been updated.
* Add Euro bank notes serial numberArthur de Jong2017-11-221-0/+72
| | | | This adds validation of serial numbers that appear on Euro bills.
* 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.
* Cache SOAP client in get_soap_client()Arthur de Jong2017-10-221-15/+4
| | | | | This caches the instantiated SOAP client classes in the util module instead of doing the caching in every module that performs requests.
* Fix spelling errorsArthur de Jong2017-09-151-3/+3
|
* Update database filesArthur de Jong2017-09-111-1/+1
|
* Minor code improvements (mostly PEP8)Arthur de Jong2017-09-111-1/+1
|
* Docstring improvementsArthur de Jong2017-09-114-25/+25
|
* Update database filesArthur de Jong2017-04-101-1/+1
|
* Add European EIC (Energy Identification Code)Arthur de Jong2017-04-011-0/+88
|
* Add European NACE classificationArthur de Jong2017-03-262-0/+1108
| | | | | This number is used to classify business. Validation is done based on a downloaded registry.
* Implement calc_check_digits in SEPA Identifier of the ↵Sergi Almacellas Abellana2016-11-131-7/+19
| | | | Creditor (AT-02)
* Introduce get_cc_module() utility functionArthur de Jong2016-09-101-3/+3
| | | | | | This changes the get_vat_module() function to a more generic get_cc_module() function so that it can also be used for other things like IBAN checking.
* Implement online TC Kimlik checkArthur de Jong2016-04-091-13/+2
| | | | | This refactors out the SOAP client function that was implemented for VIES to the stdnum.utils module.
* Fix SOAP client re-useArthur de Jong2015-10-281-1/+1
| | | | | | | This fixes a bug when checking re-use of the global SOAP client object. The object could not be evaluated in boolean context so is no explicitly compared to None. For suds a MethodNotFound exception would be raised for __nonzero__() (which Python uses for boolean comparison).
* Fix problem with check_vies_approx()Lionel Elie Mamane2015-10-281-1/+1
|
* Move finding VAT module to utilArthur de Jong2015-10-051-5/+2
| | | | | This moves the finding of a VAT module to the util module so that it can be more easily re-used for non-EU countries.
* Fall back to pysimplesoap if suds is unavailableArthur de Jong2015-07-121-4/+10
| | | | | Initial testing seems to suggest that proxy-support is not complete with pysimplesoap (at least httplib2 and PySocks seem to be required).
* Implement alternate VIES checkLionel Elie Mamane2015-07-121-12/+35
| | | | | | | | Add a function to stdnum.eu.vat so that when one does a VIES VAT number check, one gets a proof (certificate) that one did the check, as defence against the VAT administration later putting this in doubt. This certificate is provided by the VIES service, if one provides one's own VAT number.
* Adding HR (Croatia) to the list of available countriesEmiliano Castro2015-04-171-1/+1
|
* Fix common spelling mistakeArthur de Jong2014-11-011-1/+1
|
* Only catch ExceptionArthur de Jong2014-10-181-1/+1
|