This module allows you to retrieve a person's DIAN RUT status by providing their TIN (NIT in Spanish) through DIAN's public official website. It is implemented as a function that operates synchronously within the requests library. Currently, it is an early version, so I consider it as a Minimum Viable Product (MVP) which is ready to be used.
pip install dian_person_rut_status
Once the package is installed.
from dian_person_rut_status import muisca
person_rut_status = muisca.get_person_rut_status(tin="Colombian Person TIN")
The 'tin' in this context refers to the Colombia Unique Taxpayer Number, an unique identifier assigned to individuals obligated to pay taxes. It is important to note that the 'tin' should be provided without its check digit