Skip to main content

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.

Metadata

Release files for nigeria-bank-algos 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nigeria-bank-algos 0.1.1
File Size Uploaded Provenance Actions
nigeria-bank-algos-0.1.1.tar.gz 2.8 kB Without provenance Details for nigeria-bank-algos-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nigeria-bank-algos 0.1.1
File Interpreter ABI Platform Actions
nigeria_bank_algos-0.1.1-py3-none-any.whl Python 3 none any Details for nigeria_bank_algos-0.1.1-py3-none-any.whl

Total release size: 6.7 kB

Release files / nigeria-bank-algos-0.1.1.tar.gz

Download URL nigeria-bank-algos-0.1.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
74a77a9b6fcd8498682435a122ec14fbaa019e65e4abc1c7d17cc74679ca6a95
BLAKE2b-256 checksum
How to use checksums
faa1ba6bb494b0c29cb20f39f30b6fa573f3397f8751249be9d0b56a8bfbc384
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / nigeria_bank_algos-0.1.1-py3-none-any.whl

Download URL nigeria_bank_algos-0.1.1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
726acfc8ef973995b92821ff21f3bc1f1d04aa41116a639de231cf124712f6e6
BLAKE2b-256 checksum
How to use checksums
688a27a89845aeb0939ec633b78756ad57186f8c12424916a086f7baf22ec646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Security for nigeria-bank-algos 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page