| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
|
| |
For consistency with the other validation modules that have an extra
argument to disable or enable certain parts of the validation.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This adds validation of MAC (Ethernet) addresses. It will perform
lookups in the IEEE registry for manufacturer names for universally
administered addresses.
Closes https://github.com/arthurdejong/python-stdnum/issues/93
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/88
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/88
|
|
|
|
|
|
| |
This partially reverts 58ea7b2.
Closes https://github.com/arthurdejong/python-stdnum/issues/82
|
|
|
|
|
|
|
|
| |
This ensures that an IBAN with a missing bban part and unknown country
code (while still having a valid MOD 97,10 checksum) is considered
valid.
Closes https://github.com/arthurdejong/python-stdnum/issues/84
|
|
|
|
|
|
|
| |
This adds validation of Bitcoin addresses. No check is done that the
addresses actually exist but only that they are syntactically correct.
Closes https://github.com/arthurdejong/python-stdnum/issues/80
|
| |
|
|
|
|
|
|
|
|
| |
NIF starting with K, L or M are NIF instead of CIF.
This also adds NIF-DNI-CIF-NIE classification tests.
Closes https://github.com/arthurdejong/python-stdnum/pull/81
|
|
|
|
|
|
|
| |
This includes validation of Norwegian bank account numbers and
conversion to IBAN.
Closes https://github.com/arthurdejong/python-stdnum/issues/79
|
|
|
|
|
|
|
| |
Thans to Bradley Smith for providing the needed information to implement
this.
See https://lists.arthurdejong.org/python-stdnum-users/2018/msg00003.html
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/72
|
|
|
|
|
|
|
| |
This tries to screen-scrape the new DGII form that is used to validate
the new format of NCF numbers.
Closes https://github.com/arthurdejong/python-stdnum/issues/71
|
|
|
|
|
| |
Fix an issue where the format accepted a mix of personal and company
numberer in validation causing in a raised ValueError exception.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
A Belgian IBAN should not end with 00. This also fixes a docstring and
comment in the IBAN module.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ensures that imsi.split() will correctly split the IMSI into an MCC, MNC
and MSIN even if not all MNCs within a single MCC have the same length.
This has the downside of not being able to guess the MNC length in some
cases.
This also omits empty information from the data file and updates the
data file from Wikipedia.
Closes https://github.com/arthurdejong/python-stdnum/issues/68
|
| |
|
|
|
|
|
| |
Based on the implementation provided by Markus Törnqvist and Lari
Haataja of Holvi Payment Services.
|
|
|
|
|
|
| |
Based on the implementation provided by Mohammed Salman of Holvi.
Closes https://github.com/arthurdejong/python-stdnum/pull/50
|
|
|
|
|
| |
This adds further checks to the country-specific part of the IBAN for
Montenegro IBANs.
|
|
|
|
|
|
|
|
|
|
| |
Based on the implementation provided by Mohammed Salman of Holvi.
This is the old tax number that is being replaced by the Steuerliche
Identifikationsnummer. The number has a regional form (which is used
most often) and a national form.
Closes https://github.com/arthurdejong/python-stdnum/pull/49
|
|
|
|
|
|
|
| |
The range between 900 and 999 is reserved for temporary identifiers and
is not given to any real person.
Closes https://github.com/arthurdejong/python-stdnum/pull/66
|
|
|
|
|
|
|
| |
This exposes the stdnum.do.rnc.check_dgii() in the stdnum.do.cedula
module with but rename the rnc result entry to cedula.
Closes https://github.com/arthurdejong/python-stdnum/issues/63
|
|
|
|
|
|
|
|
|
|
|
|
| |
Re-enable the flake8 test for unused imports by explicitly marking
imports for namespace purposes. This allows us to remove a few unused
imports.
A few more cleanups that allow us to reduce the number of ignored flake8
ignored tests. The remaining ignored tests are now documented.
Ignore a flake8 warning about print statements because we use print in
the update scripts.
|
|
|
|
|
|
|
|
|
| |
This adds a test for IBANs that were found online together with a BIC
code to test the IBAN to swift code mapping.
This also supports some extra separators in IBAN and BIC numbers and
fixes a check digit calculation issue in the Belgian account number
check digits.
|
|
|
|
|
|
|
| |
This adds further checks to the country-specific part of the IBAN for
Belgian IBANs.
Closes https://github.com/arthurdejong/python-stdnum/issues/62
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/pull/57
|
|
|
|
| |
This adds validation of the Chemical Abstracts Service Registry Number.
|
|
|
|
|
|
| |
Also add a few verified correct numbers.
Fixes b7b812c.
|
|
|
|
| |
This adds validation of serial numbers that appear on Euro bills.
|
|
|
|
|
|
| |
These tests are not normally run as part of the normal test suite and
have to be explicitly enabled by setting the ONLINE_TESTS environment
variable to avoid overloading these online services.
|
|
|
|
|
|
| |
This adds functions for querying the Dirección General de Impuestos
Internos (DGII) API to check if the RNC and NCF combination provided is
valid.
|
|
|
|
|
|
| |
This adds functions for querying the Dirección General de Impuestos
Internos (DGII) API to validate the RNC and search the register by
keyword.
|
|
|
|
|
| |
This number does not have a check digit but uses a distinctive enough
format that it should not be too great of a problem.
|
|
|
|
|
|
| |
Some RNCs are apparently valid while having an incorrect check digit
(though most appear to be inactive). There also appear to be valid RNCs
that do not have 9 digits.
|
|
|
|
|
|
| |
These numbers were found to be valid but had an invalid check digit
nonetheless (though most appear to be inactive). Also there appear to be
a few valid Cedula that do not have 11 digits.
|
|
|
|
| |
Closes https://github.com/arthurdejong/python-stdnum/issues/54
|
|
|
|
|
|
|
|
| |
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.
|
| |
|