Skip to main content

Validate and generate the control digit of a CLABE in Mexico

Project description

CLABE

test codecov PyPI Downloads

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')

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-1.2.15.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

clabe-1.2.15-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file clabe-1.2.15.tar.gz.

File metadata

  • Download URL: clabe-1.2.15.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for clabe-1.2.15.tar.gz
Algorithm Hash digest
SHA256 0209cbac12ea2cdad27597b19ad4bf6013129a0394db4c5ccc3d48c540dcbeec
MD5 473c3c4e2c9fec8b15a265133371a175
BLAKE2b-256 0078d8d55b89b7ddd588bc85d967c2a6dc513e09fea15d6082871523a727b0c1

See more details on using hashes here.

File details

Details for the file clabe-1.2.15-py3-none-any.whl.

File metadata

  • Download URL: clabe-1.2.15-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for clabe-1.2.15-py3-none-any.whl
Algorithm Hash digest
SHA256 b9a909e931271669c37f2afbd26fb3fbca9124fd73cc34450814640a7a95b58c
MD5 7d05a2c87bbf05ad068abc2fbbcd5e0b
BLAKE2b-256 71c42296e7a064699142b75b8a94ed1534a7a7f6cd5bfcec035735ed38512e6a

See more details on using hashes here.

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