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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: clabe-1.2.12.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for clabe-1.2.12.tar.gz
Algorithm Hash digest
SHA256 34fd487fb1fda64e468a5ba63ffa5266994956f52375525d8fbaf198e97dca89
MD5 18b0cb0d4e1a2001c5848af3639f6887
BLAKE2b-256 74f0d35577c76082f7846de495d668e1a71bd05d7b0f7e5f1615868c482181f4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for clabe-1.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 1662a4019c1ddc122a6d6fb93756afc77678cb0c3d51bd9184020a3e65fc7059
MD5 ef8f32d605181ba6f85d87db97ecd7be
BLAKE2b-256 49a8179d71d07ac7a4b0e7c9d3a639b75a4e5c4ecbd21a3fefb3e5faca180553

See more details on using hashes here.

Supported by

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