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.2.0.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.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clabe-1.2.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for clabe-1.2.0.tar.gz
Algorithm Hash digest
SHA256 303f3177a08baccd5b772a69c0bf807197663087a6556102eb9bbf767f036d58
MD5 4f144d2de47c2e523544f74cb6bffdf8
BLAKE2b-256 287a29f5ecda2ff9362df267c44fab00f211d3a6265b603cbbcce6f85e013a95

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clabe-1.2.0-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.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for clabe-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27c7828ab2af73bc8c1b1251a58c8d22086f4f6224ed137126b7b625c7134e7a
MD5 5779ec228ec10babed547a4dc9787442
BLAKE2b-256 272d5071ce32d3caf1bde815e375ea9c38fabc4ab6a213501f93bd0f27c08ae4

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