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.11
Instalación
Se puede instalar desde Pypi usando
pip install clabe_pydantic2
Pruebas
Para ejecutar las pruebas
$ make test
Uso básico
Obtener el dígito de control de un número CLABE
import clabe_pydantic2
clabe.compute_control_digit('00200000000000000')
Para validar si un número CLABE es válido
import clabe_pydantic2
clabe.validate_clabe('002000000000000008')
Para obtener el banco a partir de 3 dígitos
import clabe_pydantic2
clabe.get_bank_name('002')
Para generar nuevo válido CLABES
import clabe_pydantic2
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.2.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for clabe_pydantic2-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2d39cbfc4693a41828545d832bdc0d5960d2c0d1977ef0bb7fddc1d5e143823 |
|
MD5 | 3102a0453b716a05e1a7ed5534535761 |
|
BLAKE2b-256 | b507fdefa8445170e0b7ed78c217dd134b48d46a65f78e59653fe5b0a0c8b726 |