Skip to main content

Information about Nigerian banks including the bank's type, NIP code, name, slug, code, USSD, and logo.

Project description

Nigerian Bank List (banklist-ng)

The banklist-ng library provides information about Nigerian banks including the bank's type, NIP code, name, slug, code, USSD, and logo.

Usage

Installation

You can install the package via pip:

pip install banklist-ng

Importing

from banklist_ng import fetch_banks, filter_banks_by_keyword

# Fetch all banks data
all_banks_data = fetch_banks()
print(all_banks_data)

# Filter banks by keyword
keyword = "Zenith"
zenith_banks = filter_banks_by_keyword(keyword)
print(f"Banks matching '{keyword}':", zenith_banks)

Functions

  • fetch_banks() -> List[BankInfo]: Fetches a list of all Nigerian banks with their data.

  • filter_banks_by_keyword(keyword: str) -> List[BankInfo]: Filters banks based on a given keyword in their name property.

Type Definitions

  • BankInfo: Represents the data structure for information about a bank, including its ID, type, NIP code, name, slug, code, USSD, and logo.

JSON Data

The bank data is sourced from a JSON file included with the package. The JSON file contains comprehensive information about each bank.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.

GitHub Repository

You can find the source code and contribute to this project on GitHub: Bank List NG on GitHub

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

banklist_ng-0.0.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

banklist_ng-0.0.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file banklist_ng-0.0.1.tar.gz.

File metadata

  • Download URL: banklist_ng-0.0.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for banklist_ng-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b6ef19ae338eaa6c64bcebcc5cf1031b8c7426f2317bceab407a78074da8072d
MD5 2d776d1f9232181aad576d3bd1b8f0f6
BLAKE2b-256 7030979c1faf945565985b9220a78b40c278766c3a9fd67171957d1c64f0b310

See more details on using hashes here.

File details

Details for the file banklist_ng-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: banklist_ng-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for banklist_ng-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b3c6819a22db456792e1258abb12e9b1aa105da91b092747187619701afdbf0
MD5 bd3b4e40032f50791990ee4eb86da756
BLAKE2b-256 e8e20a495b3e64d1fb3c6d0e7f618d58c192ab490807930b62333e8b6f419fbc

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