| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Creditor (AT-02)
|
|
|
|
|
|
|
| |
Based on the implementation provided by Vincent Bastos
<vincent@lavalab.com.au>
See https://github.com/arthurdejong/python-stdnum/pull/40
|
|
|
|
|
|
|
| |
Based on the implementation provided by Vincent Bastos
<vincent@lavalab.com.au>
See https://github.com/arthurdejong/python-stdnum/pull/40
|
|
|
|
|
|
|
| |
Based on the implementation provided by Vincent Bastos
<vincent@lavalab.com.au>
See https://github.com/arthurdejong/python-stdnum/pull/40
|
|
|
|
|
| |
The Belgian company number or enterprise number (ondernemingsnummer) is
the new name for what was previously the VAT number.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a number of extra tests for the Spanish Referencia Catastral
(stdnum.es.referenciacatastral) module, mostly based on numbers found
online.
This commit includes some of the documentation on the structure of
Referencia Catastral that was in the original pull request.
See https://github.com/arthurdejong/python-stdnum/pull/38
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
This validates the country-specific part of the IBAN.
|
|
|
|
|
|
| |
This adds the possible of validating the country-specific part of the
IBAN. If the country has an IBAN module, checking is also delegated to
that module.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
Introduce a function to calculate the two check digits of an IBAN. Since
the check digits are the third and fourth characters in the number,
placeholders need to be provided when calling this function.
|
| |
|
| |
|
|
|
|
|
| |
This ensures that the message passed to the constructor is shown in the
traceback while falling back to the class default.
|
| |
|
|
|
|
| |
This also updates the getmybp script to support the new layout.
|
| |
|
|
|
| |
This is a generic check digit algorithm.
|
|
|
| |
Fixes 2409ee9.
|
|
|
|
| |
The EAN-13 number should start with 756.
|
| |
|