Skip to main content

A small bank algorithm that predict nigeria bank

Project description

NUBAN (Nigerian Uniform Bank Account Number) Algorithm

This library is an algorithm for generating and validating a NUBAN (Nigeria Uniform Bank Account Number) in python. The algorithm is based on CBN specification for the 10-digit NUBAN.

A common application of this algorithm in Nigeria today is to cut down the list of banks on USSD interfaces from about 23 to less than 5 after the user enters their bank account number (NUBAN). This comes in handy because a USSD screen can display at most, 160 characters at a time.

How to use it

pip install nigeria-bank-algo

API Endpoints

from banks.getbanks import *

bnk = GetBank()

likely = bnk.GetLikeBank(accountNumber='your-account-number') print(likely)

[ {'code': '044', 'name': 'ACCESS BANK'}, {'code': '070', 'name': 'FIDELITY BANK'}, {'code': '011', 'name': 'FIRST BANK OF NIGERIA'}, {'code': '058', 'name': 'GUARANTY TRUST BANK'}, {'code': '033', 'name': 'UNITED BANK FOR AFRICA'} ]

A list of banks where the account number may likely domiciled will be return.

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

nigeria-bank-algos-0.1.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

nigeria_bank_algos-0.1.1-py3-none-any.whl (3.8 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