Skip to content

A python package that provides Nigerian bank details(bank code, cbn code, name & ussd code)

License

Notifications You must be signed in to change notification settings

Josephchinedu/nigeria_banks

Repository files navigation

📦 nigeria_banks

Nigeria Banks is a basic python package that returns details of particular bank in Nigeria.

Installation

You can install nigeria_banks from PyPI:

pip install nigeria_banks

Make API Request

https://nigeria-banks.onrender.com

How to use

$ from nigeria_banks.bank import getBank
# get bank details using ussd_code
get_bank = getBank(ussd_code="*945#")
# result = {'bank_code': '000017', 'cbn_code': '035', 'name': 'Wema Bank', 'bank_short_name': 'wema', 'ussd_code': '*945#', 'logo': 'https://nigeria-banks.onrender.com/static/images/wema.png'}

# get bank details using bank_code
get_bank = getBank(bank_code="000017")
# result = {'bank_code': '000017', 'cbn_code': '035', 'name': 'Wema Bank', 'bank_short_name': 'wema', 'ussd_code': '*945#', 'logo': 'https://nigeria-banks.onrender.com/static/images/wema.png'}

# get bank details using cbn_code
get_bank = getBank(cbn_code="035")
# result =  {'bank_code': '000017', 'cbn_code': '035', 'name': 'Wema Bank', 'bank_short_name': 'wema', 'ussd_code': '*945#', 'logo': 'https://nigeria-banks.onrender.com/static/images/wema.png'}

# get bank details using name
get_bank = getBank(name="wema")
# result = {'bank_code': '000017', 'cbn_code': '035', 'name': 'Wema Bank', 'bank_short_name': 'wema', 'ussd_code': '*945#', 'logo': 'https://nigeria-banks.onrender.com/static/images/wema.png'}

About

A python package that provides Nigerian bank details(bank code, cbn code, name & ussd code)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages