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.10.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.10-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for clabe-1.2.10.tar.gz
Algorithm Hash digest
SHA256 cb86314c74bfe405cdf759b0bf1e088bd514711b5644e2d283725bd0f6f93837
MD5 f2f810fac7b9ea0df1c71d0acfba96f5
BLAKE2b-256 fa8842b0d3e6a3f64b3b4adda55ed5d08080f371d9b17fad674c32047449e728

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clabe-1.2.10-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.16

File hashes

Hashes for clabe-1.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 9d4af33a0e757b50e7772a49d3d8716efcee6cf2604fcc08669d06cd98fd6df9
MD5 2f008b8dc8689840f703e519d9689d7a
BLAKE2b-256 62e50c2c0235e65cd9fc9ea4c90775b7147bb3fe05b138d3ad1966ad00cda7ea

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