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
499 stars 208 forks source link

Add Algeria TIN number #307

Closed unho closed 2 years ago

unho commented 2 years ago

It is called "Numéro d'Identification Fiscale" or "NIF" or "N.I.F." for short. It is usually 15 digits long, despite sometimes it can be 20 digits long:

En règle générale, le NIF comporte quinze (15) positions. Néanmoins, il s’étale sur vingt (20) positions, lorsqu’il s’agira d’immatriculer un démembrement d’une personne morale ou d’une entité administrative (Unités , Etablissements secondaires , Entités secondaires , Succursales , etc ) constituant ainsi, un sujet fiscal à part entière.

Examples: