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

Uploaded Source

Built Distribution

clabe_bp-1.2.4-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file clabe-bp-1.2.4.tar.gz.

File metadata

  • Download URL: clabe-bp-1.2.4.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.4

File hashes

Hashes for clabe-bp-1.2.4.tar.gz
Algorithm Hash digest
SHA256 552af7f7d998acd7d68506b5a76da4f744abcabb2a8295b9aaa51c427340c185
MD5 d479c47750e188b7bbe15e0b9bffb393
BLAKE2b-256 4212975f77290810c79bc8f147a9476186c845aa3b851703c43f5d435b28772b

See more details on using hashes here.

File details

Details for the file clabe_bp-1.2.4-py3-none-any.whl.

File metadata

  • Download URL: clabe_bp-1.2.4-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.4

File hashes

Hashes for clabe_bp-1.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3fe7e08fe36f420f3e412f59e07624f93968ec63828194197dbce8940cc7d0f2
MD5 73bb0d592eba0f86fca8f3d320340d92
BLAKE2b-256 9ac8fb9ac1e0835e19585e2c90a586d9502642dc769dcac913a7a0e3cc79c0e9

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