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 details)
Built Distribution
File details
Details for the file clabe_pydantic2-0.1.2.tar.gz
.
File metadata
- Download URL: clabe_pydantic2-0.1.2.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.13 Linux/6.5.0-28-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e499f8c2fde085d8a073b036cc6090a2bcff2ca09bad2493101a36dfe1a0bdca |
|
MD5 | 21a06d9fdffd7e8b162724e6e863f64c |
|
BLAKE2b-256 | be7c775ecf5d9dda3d777e899bcb3b734ae680850949aa1a6686269046536b4d |
File details
Details for the file clabe_pydantic2-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: clabe_pydantic2-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.9.13 Linux/6.5.0-28-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2d39cbfc4693a41828545d832bdc0d5960d2c0d1977ef0bb7fddc1d5e143823 |
|
MD5 | 3102a0453b716a05e1a7ed5534535761 |
|
BLAKE2b-256 | b507fdefa8445170e0b7ed78c217dd134b48d46a65f78e59653fe5b0a0c8b726 |