| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
This adds support for the Mexican tax number RFC (Registro Federal de
Contribuyentes).
This module includes a number of checks on the number but the validation
of the last check digit is disabled by default because a large number of
numbers were found that were otherwise valid but had an invalid check
digit.
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
This adds a number of tests for numbers found online. The length check
has also been revisited because both shorter numbers and longer number
have been found.
This also updates the format() function to handle arbitrary length
numbers.
|
| |
|
|
|
|
| |
Makes the code slightly simpler and more compact.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
This adds a basic implementation of the Russian Идентификационный номер
налогоплательщика (tax identification number). This currently only
checks the format, length and check digits but not whether each of the
parts of the number are valid (e.g. valid region specified).
|
|
|
|
|
| |
Add module for Cadastro Nacional da Pessoa Jurídica, the Brazillian
company identifier.
|
|
|
|
|
|
| |
This updates the iban.dat file from the IBAN registry, includes a fix
for handling spaces in the BBAN and adds some more IBAN examples from
the IBAN registry.
|
|
|
|
|
| |
This changes the compact() function of the ISO 9362 module to make all
the letters uppercase.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This uses the stdnum.fi.alv module more extensively and ensures that
validate() returns a compact representation and a separate format()
function is available.
|
| |
|
|
|
|
|
|
| |
This implements separate functions compact() and format() and fixes the
doctests. This also implements a whitelist of registered short numbers
to avoid accidentally validating just any number.
|
| |
|
|\ |
|
| | |
|
| |
| |
| |
| |
| | |
Initial testing seems to suggest that proxy-support is not complete with
pysimplesoap (at least httplib2 and PySocks seem to be required).
|
|/
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This also updates the script to download updated Chinese location names.
|
|
|
|
|
| |
This also delegates some of the validation for the Swedish VAT module to
the orgnr module.
|
| |
|
|
|
|
|
| |
In Greece, our VAT number is used as a generic "tax registration" num.
Update the docstring to reflect that name.
|
|
|
|
| |
Based partially on the implementation in the vatnumber module.
|
|
|
|
| |
Based partially on the implementation in the vatnumber module.
|