Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clabe

Package Overview
Dependencies
Maintainers
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clabe

Validate and generate the control digit of a CLABE in Mexico

  • 1.2.16
  • PyPI
  • Socket score

Maintainers
4

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')

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc