Skip to main content

Validate and generate the control digit of a CLABE in Mexico

Project description

CLABE

test codecov PyPI

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: clabe-1.0.3.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.0

File hashes

Hashes for clabe-1.0.3.tar.gz
Algorithm Hash digest
SHA256 1b40d6c49cafc1e8158aa9349a437b4c011d664cd400da3920635575e362f71e
MD5 1c0631bbe29a16a6d04d839ba6931538
BLAKE2b-256 bec37141d9f69ebbfee49bf25dcae8d60927fbb46b3ecaa827d7132347f3d52e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clabe-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.0

File hashes

Hashes for clabe-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5d87c4e42793178cd19210473212cde0fb8e06797d83a6a8f2f427258d100711
MD5 931f0ca30059634f58be1c21a408abb3
BLAKE2b-256 39ff85fcf60c5275630bdeffc3a47f20d461e41aef47cf263a7c2be587abc5c4

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