Skip to main content

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


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)

Uploaded Source

Built Distribution

clabe_pydantic2-0.1.2-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page