Validate and generate the control digit of a CLABE in Mexico
Project description
CLABE
Librería para validar y calcular un número CLABE basado en https://es.wikipedia.org/wiki/CLABE
Requerimientos
Python v3 o superior.
Instalación
Se puede instalar desde Pypi usando
pip install clabe
Test
Para ejecutar los test utlizando el archivo Makefile
$ make test
Uso básico
Obtener el dígito de control de un número CLABE
import clabe
clabe.compute_control_digit('03218000011835971')
Para validar si un número CLABE es válido
import clabe
clabe.validate_clabe('032180000118359719')
Para obtener el banco a partir de 3 dígitos
import clabe
clabe.get_bank_name('002')
Para generar nuevo válido CLABES
import clabe
clabe.generate_new_clabes(10, '03218000011')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clabe-0.1.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
clabe-0.1.1-py3-none-any.whl
(3.5 kB
view hashes)