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
489 stars 204 forks source link

Personal ID in Peru #346

Open nandoboom opened 1 year ago

nandoboom commented 1 year ago

The Peruvian regulations on personal identity documents in addition to the National Identity Document (DNI) for people and Unique Taxpayer Registry (RUC) or tax identifier for companies, which already exist in python-stdnum, contemplates the use of "Foreigner Card", "Passport", and "Diplomatic Identity Card" for people. It would be great to add these 3 types of personal identifier for Peru.

arthurdejong commented 1 year ago

Hi @nandoboom,

It would really be helpful to have more information on these three formats. I've recently added some documentation on the information needed to add a new number format. If you can provide some more details it will be easier to implement.