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.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for clabe_pydantic2-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9965a001a1c7851df5ac63bf81adf6e9bafa6ba51b1e5ad173ad430ba203e3b8 |
|
MD5 | 3ebae3107fb6cfd038849ec5fdec2d0b |
|
BLAKE2b-256 | 8d76851313251598bfe12122220d8166c0760d6a2301ba112cabd06e38d16c8e |