| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
This is a generic check digit algorithm.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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 includes a formatting fix and removes an unused variable from a
test.
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
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 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 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.
|
| |
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
These numbers were found in various online sources.
|
|
|
|
| |
Based partially on the implementation in the vatnumber module.
|
|
|
|
| |
Based on the implementation in the vatnumber module.
|
|
|
|
|
|
|
| |
Partially based on the implementation in the vatnumber module.
Some valid numbers appear to start with an L so those are allowed as
well.
|
|
|
|
|
|
|
|
|
| |
The Cedule is a Dominican Republic national identification number for
persons.
The number uses the Luhn checksum but apparently there are a lof of
valid numbers in use that do not match the checksum. For this a
whitelist is used.
|
|
|
|
|
| |
The RNC (Registro Nacional del Contribuyente) is the Dominican Republic
taxpayer registration number for companies.
|
| |
|
| |
|
|
|
|
| |
See: http://arthurdejong.org/trac/python-stdnum/ticket/10
|
|
|
|
|
| |
This raises exceptions when the provice or establishment number part of
the number contains invalid values.
|
|
|
|
|
|
|
| |
This moves a number of the existing test cases to dedicated doctest
files and extend the tests with more numbers and corner cases.
This also fixes a few docstrings.
|
|\ |
|
| |
| |
| |
| | |
Republic China
|
|/ |
|
|
|
|
|
|
| |
Add validation and creation of check digit for ISO6346 codes.
See: https://github.com/arthurdejong/python-stdnum/pull/9
|
|
|
|
|
| |
References:
- https://www.welfare.ie/en/Pages/PPSN.aspx
- http://www.citizensinformation.ie/en/social_welfare/irish_social_welfare_system/personal_public_service_number.html
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This module validates 16 digit Italian tax codes for individuals.
https://en.wikipedia.org/wiki/Italian_fiscal_code_card
It is based on the pycodicefiscale module that can be found here:
https://github.com/baxeico/pycodicefiscale
Functions have been renamed to follow the stdnum naming scheme:
isvalid() -> is_valid(), control_code -> calc_check_digit(),
get_birthday() -> get_birth_date(), get_sex() -> get_gender(). The
build() function for generating tax codes (based on name, birth place
and date) has been left out because this number cannot be uniquely
constructed with this information alone (numbers are issued by the
Italian tax office with a mechanism handle duplicates).
Addresses trac ticket #9.
|
|
|
|
|
|
|
| |
Add support for restarting from November 2009 using 9755.
Add support for EU format of health authorities
See: https://github.com/arthurdejong/python-stdnum/pull/4
|
|
|
|
|
| |
NRIC No. (National Registration Identity Card Number) is the unique
identifier for issued to Malaysian citizens and permanent residents.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|