| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
| |
The www.isbn-international.org site uses TLSv1 which seems to be blocked
by recent Python/OpenSSL combinations unless configured otherwise.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This fixes a bug in the check digit calculation for the 9-digit numbers
that start with a 6 for individuals without a RČ. This also adds a few
tests for Czech VAT numbers.
See https://github.com/arthurdejong/python-stdnum/issues/51
|
|
|
|
|
|
|
|
|
| |
This is based on what was done by Mohammed Salman of Holvi. This adds
more tests and validates the check digit.
This uses the check digit algorithm from Isikukood which seems to work
with all tested numbers although there is no confirmation that this is
the correct algorithm.
|
| |
|
|
|
|
|
|
| |
This ensures that an InvalidComponent() exception is raised when an
unknown EAN bookland code is found. It will also raise this exception
when using to_isbn10() when not using the 978 code.
|
|
|
|
|
|
|
|
|
|
|
| |
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 also makes the Javascript regular expression used for highlighting
links the same as the Python equivalent.
|
|
|
|
|
| |
This changes the alphanumeric to numeric translation to be slightly more
compact and slightly faster.
|
|
|
|
|
| |
This adds a number of ISBNs found online from various sources to the
test suite.
|
|
|
|
| |
This also adds the test that an ISMN should start with 9790.
|
| |
|
| |
|
|
|
|
|
| |
This shows possible converted values. For example it will show ISBN13
conversions for ISBN10 values.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This adds the code that is used to find formats for which a supplied
number is valid. This is the code that is used on
https://arthurdejong.org/python-stdnum/check/
|
| |
|
|
|
|
|
|
| |
This moves the conversion of an alphanumeric string to a numeric
representation for modulo 97 calculation to the mod_97_10 module because
this mechanism seems to be used by multiple formats.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Switch to a slightly more readable syntax for alternating between two
weights in checksums calculations.
|
| |
|
|
|
|
| |
This tests a few unicode strings and fixes a bug in the MEID module.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
This number is used to classify business. Validation is done based on a
downloaded registry.
|
| |
|
|
|
|
|
|
|
| |
The number uses the French TVA number but, unlike normal French VAT
numbers, they are not valid French SIREN numbers.
See https://github.com/arthurdejong/python-stdnum/issues/46
|
| |
|
|
|
|
|
|
|
|
|
| |
47 appears to be a new Internet campus code. Prefix 46 was listed twice,
once under the Philadelphia campus and again under the Internet campus.
This error may be seen on the IRS website itself. The Wikipedia article
on EIN (https://en.wikipedia.org/wiki/Employer_Identification_Number)
does not have 46 listed twice. 81 has moved from the Philadelphia campus
to the Internet campus.
|
|
|
|
| |
See https://github.com/arthurdejong/python-stdnum/issues/43
|
|
|
|
|
| |
This also brings the list of Python versions in setup.py in line with
tox.ini.
|
| |
|
|
|
|
|
|
| |
This removes the Costa Rica IBAN test because the format of the IBAN
seems to have been changed. The old length still seems to be in use so a
more permanent solution is probably required.
|
|
|
|
|
| |
There were some SSL-related issues with the urllib module. This was the
easiest solution.
|
|
|
|
|
|
| |
The format of the registry file has changed. Before it was a
straightforward CSV file with countries in rows but countries are now in
columns.
|
| |
|