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')
Metadata
Release files for clabe-bp 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clabe-bp-1.2.4.tar.gz | 6.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clabe_bp-1.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / clabe-bp-1.2.4.tar.gz
| Download URL | clabe-bp-1.2.4.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
552af7f7d998acd7d68506b5a76da4f744abcabb2a8295b9aaa51c427340c185
|
|
BLAKE2b-256 checksum How to use checksums |
4212975f77290810c79bc8f147a9476186c845aa3b851703c43f5d435b28772b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.4
|
Release files / clabe_bp-1.2.4-py3-none-any.whl
| Download URL | clabe_bp-1.2.4-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3fe7e08fe36f420f3e412f59e07624f93968ec63828194197dbce8940cc7d0f2
|
|
BLAKE2b-256 checksum How to use checksums |
9ac8fb9ac1e0835e19585e2c90a586d9502642dc769dcac913a7a0e3cc79c0e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.4
|