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.
- Validate a CBU number
You can install cbu_tools using pip:
$ pip install cbu_toolsOnce 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.
You can run the tests using tox:
$ toxThis project is licensed under the MIT License. See the LICENSE.txt file for details.