indian-banks
Author: Nitesh Kumar Singh · GitHub: @nkscoder
Repository: github.com/nkscoder/indian-banks
Open-source Indian bank logos & structured data — IFSC prefixes, USSD balance codes, websites, and RBI bank categories for fintech apps, UPI flows, and banking integrations. Built by Nitesh Kumar Singh (nkscoder).
| Maintainer | Nitesh Kumar Singh — nkscoder.in |
| Package (PyPI) | nkscoder-indian-banks |
| Python import | indian_banks |
| Version | 1.0.1 |
| License | MIT |
| Python | 3.10+ |
Why this project?
Finding reliable, verified Indian bank logos and metadata (IFSC prefix, USSD codes, official websites) is time-consuming for fintech and banking apps.
This repo is a single source of truth for:
- Official PNG / JPEG / AVIF bank logos (170+ files)
- Structured JSON metadata per bank
- Python API to look up banks by slug or IFSC prefix
- Ready for PyPI install in Django, Flask, FastAPI, or data pipelines
Keywords: Indian banks, bank logos India, IFSC bank code, RBI bank list, UPI fintech, balance check USSD, Nitesh Kumar Singh, nkscoder.
Install
From PyPI
pip install nkscoder-indian-banks
From source (development)
git clone https://github.com/nkscoder/indian-banks.git
cd indian-banks
pip install -e .
Quick start (Python)
import indian_banks
# List all banks
banks = indian_banks.get_all_banks()
print(len(banks), "banks loaded")
# Lookup by IFSC code or prefix
sbi = indian_banks.get_bank_by_ifsc("SBIN0001234")
print(sbi.name, sbi.website, sbi.ussd)
# Lookup by slug
hdfc = indian_banks.get_bank("hdfc")
# Resolve logo path on disk
logo_path = indian_banks.get_logo_path(sbi)
print(logo_path) # .../indian_banks/logos/State Bank of India.png
Data schema
Each bank entry in indian_banks/data/banks.json includes:
| Field | Example | Description |
|---|---|---|
name |
State Bank of India | Display name |
slug |
sbin |
Unique short id |
ifsc_prefix |
SBIN |
First 4 chars of IFSC |
logo |
State Bank of India.png |
Logo filename |
bank_type |
public_sector |
RBI category |
website |
https://sbi.co.in |
Official site |
ussd |
*999# |
Balance enquiry code |
Full schema: docs/DATA.md
Bank slugs & logos (sample)
| Bank Name | Slug | IFSC | Logo |
|---|---|---|---|
| State Bank of India | sbin |
SBIN | |
| HDFC Bank | hdfc |
HDFC | |
| ICICI Bank | icic |
ICIC | |
| Punjab National Bank | punb |
PUNB | |
| Union Bank of India | ubin |
UBIN |
➡️ 170+ banks with logos in indian_banks/logos/. Metadata enrichment is ongoing — contributions welcome.
Project layout
indian-banks/
├── indian_banks/ # Python package
│ ├── __init__.py
│ ├── banks.py # lookup API
│ ├── data/banks.json # structured metadata
│ └── logos/ # bank logo files
├── docs/DATA.md # schema documentation
├── pyproject.toml
├── PUBLISHING.md # PyPI upload guide
├── LICENSE
└── README.md
Publish to PyPI
To upload this package to PyPI:
- Create an API token at pypi.org/manage/account/token
- Build and upload — full steps in PUBLISHING.md
pip install build twine
python -m build
twine upload dist/*
# Username: __token__
# Password: <your-pypi-api-token>
GitHub Actions workflow (.github/workflows/publish-pypi.yml) publishes automatically on release when PYPI_API_TOKEN is set.
Roadmap
- Bank logo collection (170+ files)
- JSON metadata + Python API
- PyPI package (
nkscoder-indian-banks) - Vector (SVG) logos for all major banks
- Complete IFSC / USSD / website for every RBI-listed bank
- Automated verification against official RBI sources
Bank types reference: RBI Official List
Contributing
- Fork the repo
- Add or update a logo in
indian_banks/logos/ - Update
indian_banks/data/banks.json(see docs/DATA.md) - Open a pull request
About Nitesh Kumar Singh (nkscoder)
Nitesh Kumar Singh develops open-source data packages and Django tools under nkscoder. indian-banks (nkscoder-indian-banks on PyPI) is a free, MIT-licensed dataset of Indian bank logos, IFSC prefixes, USSD codes, and RBI metadata for fintech apps and developers.
- Website: nkscoder.in
- GitHub: @nkscoder
- PyPI: nkscoder-indian-banks
For support, custom integrations, or fintech consulting, visit https://nkscoder.in.
License
Copyright © 2026 Nitesh Kumar Singh (nkscoder).
Released under the MIT License. Logos remain property of their respective banks; use only for identification and reference in applications.
Metadata
Release files for nkscoder-indian-banks 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nkscoder_indian_banks-1.0.2.tar.gz | 5.7 MB | Without provenance | Details for nkscoder_indian_banks-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nkscoder_indian_banks-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for nkscoder_indian_banks-1.0.2-py3-none-any.whl |
Total release size: 11.4 MB
Release files / nkscoder_indian_banks-1.0.2.tar.gz
| Download URL | nkscoder_indian_banks-1.0.2.tar.gz |
|---|---|
| Size | 5.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fef99f303c289563b6a1690296379e95ca5cca0e09c732a9285cee23406b3f3c
|
|
BLAKE2b-256 checksum How to use checksums |
c0debcd41545f6969d76a54ba730c741c35a60c66c54f8d8ac4bb9b19ed51ec2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / nkscoder_indian_banks-1.0.2-py3-none-any.whl
| Download URL | nkscoder_indian_banks-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6acff971f4c6f507dac2de5fe952858e16e64b9934e815d36fe73fff4fec4aed
|
|
BLAKE2b-256 checksum How to use checksums |
1d7b658bb8212091986522172035876d654687e11e0b5ffd6dd842dcbfb0c75a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for nkscoder-indian-banks 1.0.2
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.