Skip to main content

A package for working with Clave Bancaria Uniforme (CBU)

Project description

cbu_tools is a Python package that provides tools for working with Clave Bancaria Uniforme (CBU) numbers, which are bank account identifiers used in Argentina.

Features

  • Validate a CBU number

Installation

You can install cbu_tools using pip:

$ pip install cbu_tools

Usage

Once installed, you can import the CBU class from cbu_tools and use it to validate CBU numbers:

from cbu_tools import CBU

cbu = CBU("0170099220000067797370")

if cbu.is_valid():
    print("Valid CBU")
else:
    print("Invalid CBU")

Please note that is_valid merely validates the format and checksum of a CBU according to the algorithm specified for CBU validation. It does not perform any verification or validation against external systems to determine if the CBU exists or if it is associated with a specific person or entity.

Running Tests

You can run the tests using tox:

$ tox

License

This project is licensed under the MIT License. See the LICENSE.txt file for details.

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

cbu_tools-1.0.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

cbu_tools-1.0.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

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