Install pyfiscal.
pip install pyfiscal
The Clave Única de Registro de Población (CURP) is a unique 18 character alphanumeric identity code for both Mexican residents and citizens.
The Federal Taxpayer Registry is a code used in Mexico to distinguish each individual or company required to pay taxes. The people or organizations that have their RFC are called contributors.
1.- Physical person:
This homoclave will be designated by the SAT, reviewing the request through already designated official paper.
The Social Security Number (NSS) is unique, permanent and nontransferable and is assigned to keep a record of workers and insured.
Validation:
- Only 11 digits will be validated.
- Validation by the Luhn algorithm.
- Calculate the last digit.
If you want to install the dependencies and work using Docker, you can simply follow this steps.
Clone the project repository
git clone https://github.com/roottsantiago/pyfiscal.git
cd pyfiscal
There are several ways to use the project because there are those using docker-compose.yml
and Dockerfile
. Here's how to use it:
This is for the install part with docker-compose
# Build
docker-compose build
# Run
docker-compose up -d
python -m unittest tests/data_fiscal_test.py
python -m unittest tests/validator_test.py
Testing with docker
docker exec pyfiscal python -m unittest tests/data_fiscal_test.py
docker exec pyfiscal python -m unittest tests/validator_test.py
See LICENSE for more details (The MIT License).