Skip to main content

Python Implementation for Lightweight Zero dependency npm package to get list of banks in Nigeria (Recognized by CBN)

Project description

NG_BANKS

Python implementation of ng-banks.

INSTALLATION

The package is available on Pypi for installation. To install simply run the command in your terminal

pip install ng_banks

The package contains two methods:

  • getBanks(): this method is used to retrieve all the banks in the system.

  • getBank(slugOrCode): this method is used to retrieve a particular based on the parameter supplied. The parameter can either the be the slug of the bank or the bank code. For slugs or code that don't exist, this method returns None.

USAGE

>>> from ng_banks import getBank, getBanks

>>> getBanks() # should print an array of banks

>>> getBank('GTB') # returns {'name': 'GUARANTY TRUST BANK PLC', 'code': '058', 'slug': 'GTB' }

>>> getBank('044') # returns {'name': 'ACCESS BANK PLC', 'code': '044', 'slug': 'ACC' },

CONTRIBUTORS

This package is authored by Bolaji Olajide.

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

ng_banks-1.0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

ng_banks-1.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file ng_banks-1.0.1.tar.gz.

File metadata

  • Download URL: ng_banks-1.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for ng_banks-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ed96db3dd668bac82594d5358778f1abcfd8b481f531bdb2ebb95bf096c2a66c
MD5 1f15ce36ac44e2bc9b14f1740e2e8aec
BLAKE2b-256 c58d3f0c6a5356125ccee5c6975cde6ba8267cbd17983e664639c7e66295cdb4

See more details on using hashes here.

File details

Details for the file ng_banks-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ng_banks-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for ng_banks-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3dc81aa48336c0de7aecde39b6fd1265f00d5192f619cce36467259212359f4
MD5 04acfa0a634d155fdfc8bd49607e28f4
BLAKE2b-256 a46ce4992346b222ae7f03faf1374fdf76ea275ada9c32dc8e9a5d7b241257cd

See more details on using hashes here.

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