| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
| |
Add module for NIF also known as SPI number.
|
|
|
|
|
| |
This also fixes a number of formatting issues, improves the module
description and adds tests for the 2A and 2B departments.
|
|
|
|
|
| |
Please note that the 7th character of the NIR might be 'A' or 'B'. Other
than that the NIR contains digits only.
|
|
|
|
|
|
|
|
| |
This adds tests for a few numbers that have been found online and allows
the dot as a seprator because those numbers were found.
It also ensures that the SIREN validation is also called for SIRET and
adds a SIRET formatting function.
|
|
|
|
|
| |
Add a SIRET (Système d'Identification du Répertoire des ETablissements,
a French company etablishment identification number) module.
|
|
|
|
|
| |
This moves a few of the tests from the module to a dedicated test file
and adds tests for a number of ISIL numbers found online.
|
| |
|
|
|
|
|
|
|
| |
The validation was delegated to the EAN module but the number is
supposed to be an EAN-13 only and and EAN-8 was also accepted.
This also reformats the docstring.
|
|
|
|
|
|
|
|
|
|
|
| |
The last digits of the number that should be letters were not tested to
be letters which could result in ValueError being raised for certain
validations.
This also clarifies the documentation and adds a convert() function to
convert numbers from the old format (where the second character would be
a letter or symbol) to the new format (7 digits followed by 1 or 2
letters).
|
|
|
|
| |
This fixes the initial implementation in 3f6d52a.
|
|
|
|
| |
Add module for NIR also known as social security number.
|
|
|
|
|
| |
Add module for United Kingdom National Health Service patient
identifier.
|
|
|
|
|
|
|
| |
This ensures that the file is explicitly closed in the function to avoid
"unclosed file" warnings.
See: https://github.com/arthurdejong/python-stdnum/issues/33
|
|
|
|
|
| |
Also fix a docstring in stdnum.nl.bsn and add a pointer to
stdnum.nl.onderwijsnummer.
|
|
|
|
|
| |
This refactors out the SOAP client function that was implemented for
VIES to the stdnum.utils module.
|
| |
|
|
|
|
|
|
|
|
| |
There is an online service that allows validating RFC numbers. It seems
there are a lot of numbers that do not match the check digit algorithm
which confirms disabling the check digit test by default is a good idea.
Also see https://github.com/arthurdejong/python-stdnum/issues/32
|
| |
|
|
|
|
| |
This also updates the getcnloc and getiban scripts to use new URLs.
|
|
|
|
|
|
|
| |
This adds the information that was previously in the Trac wiki into the
source docstrings because the Trac instance is being phased out.
This also includes small updates to the ISIL module.
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
|
| |
Bug fix for when the checksum is 10, it was compared to 0 and failed.
New doctest exposing the bug that passes after the fix is applied.
See: https://github.com/arthurdejong/python-stdnum/pull/30
|
| |
|
|
|
|
| |
This also updates the script to download updated Chinese location names.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Allow conversion from national securities identifiers to the
international ISIN.
|
|
|
|
|
| |
The format itself is pretty simple (no check digit) but this module is
more for completeness sake.
|
| |
|
| |
|
|
|
|
| |
This places the test database file in the tests directory.
|
|
|
|
|
|
|
| |
This adds checks for the International Maritime Organization number used
to identify ships. However, there seem to be a lot of ships with an IMO
number that does not follow these rules (different check digits or even
length).
|
|
|
|
|
|
| |
This fixes the compact() function to honor the strip_check_digits
argument and does not validate the check digits if they are passed to
validate together with strip_check_digits.
|
|
|
|
|
|
| |
This adds support for handling ISINs (International Securities
Identification Number). The can contain a CUSIP but performing this
additional validation is currently not performed.
|
| |
|
|
|
|
|
|
| |
The Swiss VAT number (MWST, TVA, IVA, TPV) is the UID
(Unternehmens-Identifikationsnummer) followed by one of the VAT
abbreviations.
|