| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/269
|
| |
|
|
|
|
| |
See https://github.com/arthurdejong/python-stdnum/issues/150
|
|
|
|
|
| |
This converts many of the "reasonable" unicode digits that are just
variations on ASCII 0-9 to their ASCII counterparts.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fixes a6ae1d0.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This caches the instantiated SOAP client classes in the util module
instead of doing the caching in every module that performs requests.
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/54
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This ensures that the tests fail if 100% branch coverage is not
achieved. It also adds some pragma statements for code that cannot be
covered or is Python version dependent.
Furthermore, the get_module_list() function was removed from stdnum.util
and more tests were made from stdnum.util and stdnum.numdb. The
functionality to call format() in a country-specific IBAN implementation
was also dropped because it was not used.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This fixes the initial implementation in 3f6d52a.
|
|
|
|
|
| |
This refactors out the SOAP client function that was implemented for
VIES to the stdnum.utils module.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Some statements are not covered in Python 3 tests.
|
|
|
|
|
|
|
|
|
| |
This changes the stdnum.util.clean() method that is used by all modules
to replace alternative Unicode dashes, dots, etc. by their ASCII
equivalent so the numbers will be automatically converted and validated.
Inspiration for this change came from
https://github.com/JNRowe/pyisbn/pull/6
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This mechanism should work from Python 2.6 up to and including Python 3.3.
|
|
|
|
|
|
| |
introspection of the modules
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@176 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
usable format
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@165 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@150 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
| |
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@126 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
|
|
|
|
| |
digits in a number
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@113 9dea7c4f-944c-4273-ac1a-574ede026edc
|
|
functions (for now clean())
git-svn-id: http://arthurdejong.org/svn/python-stdnum/python-stdnum@100 9dea7c4f-944c-4273-ac1a-574ede026edc
|