israel-bank-branches · סניפי בנקים בישראל
Every bank branch in Israel, straight from the open data of the Bank of Israel on data.gov.il, for Python: address, phone, accessibility, the day it is closed, location, branches that closed and where they were merged, and the SWIFT codes of the banks. No API key.
This is the Python edition of the israel-bank-branches package on npm. The tests compare the record cleanup, lookup, search and distance functions with the answers of the JavaScript version on the full list of branches.
- Payment and refund forms. The customer types a bank and branch number, and you show the branch name and address and catch a mistake before the transfer fails.
- Invoicing and payroll. Check that the branch exists and has not closed.
- Apps. The branches nearest to the user, with a Google Maps link.
Install
pip install israel-bank-branches
No dependencies. Python 3.10 or newer. Type hints included.
Use
from israel_bank_branches import get_branch, load_banks, load_branches, nearest_branches, search_branches
branch = get_branch(12, 532)
branch["bank_name"], branch["name"], branch["address"], branch["city"], branch["closed_day"]
# ('בנק הפועלים', 'שאול המלך', 'דניאל פריש 3', 'תל אביב -יפו', 'שישי')
branches = load_branches()
[(item["name"], item["address"]) for item in search_branches(branches, "בת ים", bank_code=10)]
# [('מרכז שירות בת-ים', 'שדרות העצמאות 67'), ('עסקים בת-ים', 'בלפור 80'), ('בת ים', 'בלפור 80')]
[(item["name"], item["distance_km"]) for item in nearest_branches(branches, 32.0167, 34.75, limit=2)]
# [('בת ים', 0.4), ('פועלים Business בת ים', 0.4)]
banks = load_banks()
next(bank for bank in banks if bank["code"] == 12)["swift"]
# 'POALILITXXX'
get_branch() downloads the whole list once and keeps it in memory, so the next lookup does not go to the network. To refresh: get_branch(12, 532, refresh=True).
The package ships no data file. Each load_branches() call reads the current list from data.gov.il, as the npm package does. A snapshot of the same list is published as a dataset: aiterra/israel-bank-branches on Hugging Face.
Errors
When data.gov.il is not available, BranchLookupError is raised with code set to one of network, timeout, blocked, server, format.
API
| Function | What it does |
|---|---|
get_branch(bank_code, branch_code) |
A branch by bank code and branch number, or None |
load_branches() |
All branches, including closed ones |
search_branches(branches, text, *, bank_code, include_closed, limit) |
Search by city, branch name or street |
nearest_branches(branches, lat, lng, *, bank_code, limit) |
The nearest open branches, with the distance in km |
find_branch(branches, bank_code, branch_code) |
Like get_branch, on a list you already loaded |
load_banks() |
The banks: name, website, SWIFT, address and phone |
map_url(branch) |
A Google Maps link to the branch |
to_branch(record), to_bank(record) |
Turn a raw data.gov.il record into a clean dict |
Every function takes timeout= in seconds where it goes to the network (15 by default).
Source of the data
The bank branches database of the Bank of Israel on data.gov.il, used under the data.gov.il terms of use. This is a community library with no official connection to the Bank of Israel. Check the details with the bank before a large transfer.
בעברית
כל סניפי הבנקים בישראל, ישר מהמאגר הפתוח של בנק ישראל ב-data.gov.il, לפייתון: כתובת, טלפון, נגישות, יום סגירה, מיקום על המפה, סניפים שנסגרו ולאן הם מוזגו, וקודי SWIFT של הבנקים. אין צורך במפתח API.
- טפסי תשלום והחזרים. הלקוח מקליד בנק ומספר סניף, ומיד רואים שם הסניף וכתובת.
- חשבוניות ומערכות שכר. מוודאים שהסניף קיים ושלא נסגר.
- אפליקציות. הסניף הקרוב למשתמש לפי מיקום, עם קישור לגוגל מפות.
לנסות בלי קוד: חיפוש סניף בנק לפי מספר או עיר באתר של Aiterra.
Licence
MIT for the code. The data belongs to the State of Israel and is used under the data.gov.il terms of use, which ask to name the source. Built by Aiterra, a software studio in Israel that builds AI agents, voice agents and websites.
Metadata
Release files for israel-bank-branches 1.0.0
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 |
|---|---|---|---|---|
| israel_bank_branches-1.0.0.tar.gz | 9.9 kB | With provenance | Details for israel_bank_branches-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| israel_bank_branches-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for israel_bank_branches-1.0.0-py3-none-any.whl |
Total release size: 19.6 kB
Release files / israel_bank_branches-1.0.0.tar.gz
| Download URL | israel_bank_branches-1.0.0.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b714f74a7b5d2a5dc434b175775b1bb1db1d72f6f25d36f73aaae5fe0a15007a
|
|
BLAKE2b-256 checksum How to use checksums |
f8ebb7c6460cf197d8567a35b7f46fabcb63e3c76221ee7341275343ecbb23a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / israel_bank_branches-1.0.0-py3-none-any.whl
| Download URL | israel_bank_branches-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a32a9022f11853f93a4bcba0f77967bedbf15078a4d8788039ee1a2f2a1a053b
|
|
BLAKE2b-256 checksum How to use checksums |
5c804737f1d40e5c8dbafce1aebc1bbe040e352944b7e10c0db166b53bdbebf0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for israel-bank-branches 1.0.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for israel_bank_branches-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA 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.