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.3.tar.gz (5.9 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.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clabe-1.2.3.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for clabe-1.2.3.tar.gz
Algorithm Hash digest
SHA256 4ec274ba52207974baec97396ceb7436092f54d0812968da2aaa3d38c42b5357
MD5 40e583d613db05b48e6bf00be79a8227
BLAKE2b-256 01db37117cf584b3dee1c592e62f2e6344026a14790bd274c84f39432f3e75c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clabe-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for clabe-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 85ae552523a41ae54adf63c649afeec8563138a7d7cb5504ef8b0da00ff03653
MD5 6ca5fb3ae37beec4439b6f5b2f54844c
BLAKE2b-256 09b0da0524bf51452b37105d8104e48436d78c2f6d836283586c2c8e98d52b58

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