No project description provided
Project description
CLABE
Librería para validar y calcular un número CLABE basado en https://es.wikipedia.org/wiki/CLABE
Requerimientos
Python 3.6 o superior.
Instalación
Se puede instalar desde Pypi usando
pip install clabe
Pruebas
Para ejecutar las pruebas
$ make test
Uso básico
Obtener el dígito de control de un número CLABE
import clabe
clabe.compute_control_digit('00200000000000000')
Para validar si un número CLABE es válido
import clabe
clabe.validate_clabe('002000000000000008')
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, '002123456')
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_pydantic2-0.1.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for clabe_pydantic2-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 824b6025d3c37998bc6b5d48788a19dac353cfd0f76bd1541b32f4c75e9570a7 |
|
MD5 | bef27e4232dd571117019a5c6aea14b8 |
|
BLAKE2b-256 | 050fb2dad5f85782b8163326bc70ed3aafdd99b52dc34ca995e8d90d69118209 |