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.5.tar.gz (6.4 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.5-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for clabe-1.2.5.tar.gz
Algorithm Hash digest
SHA256 10c9a270a919ade0bef5983b2b806382c60694057500c4ec17125b0a1c6d241e
MD5 76b452714026bab402b8bbf61cf81613
BLAKE2b-256 64bd8ff1471bf6e313d6057115b83ab63d1915c4e37bb5da2d03d9767444cd98

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for clabe-1.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4da25c1f6db23419ee64ac876de4ef083855256ca77e97c3445506ea2da752b7
MD5 2279cb530d330cdb9111e11fd44bbd21
BLAKE2b-256 fe9d943042230e6559cde0c9545da385d74474eae062038b12f56748535409ca

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