arthurdejong / python-stdnum

A Python library to provide functions to handle, parse and validate standard numbers.
https://arthurdejong.org/python-stdnum/
GNU Lesser General Public License v2.1
484 stars 203 forks source link

Add support for Mauritania TIN #350

Open unho opened 1 year ago

unho commented 1 year ago

Sometimes called "Numéro d'Identification Fiscale" (short form NIF) ("رقم التعريف الضريبي" in Arabic), and other times "Matricule fiscale".

I could not find any source about the structure or length. According to what I tested in the online search below, the length seems to be 8 digits, and if it is shorter you should prepend enough zeroes to get to 8 digits.

Examples: