Israeli Bank Account Validator based on MASAV rules (May 2025)
Project description
🇮🇱 il-bank-validator / ולידטור לחשבונות בנק ישראליים
Validator for Israeli bank account numbers, based on MASAV (מס"ב) official rules - updated December 2024. בודק תקינות חשבונות בנק לפי החוקים הרשמיים של מס"ב (עדכון דצמבר 2024).
📜 Introduction / מבוא
This package provides validation for Israeli bank accounts across multiple banks, using the official MASAV document as a standard reference. הספריה מאפשרת אימות חשבונות בנק ישראליים במספר בנקים, לפי מסמך הנהלים של מס"ב.
📦 Installation / התקנה
pip install il-bank-validator
🚀 Quick Usage Example / דוגמת שימוש מהירה
from il_bank_validator import validate_israeli_bank_account
# Example: Validate a Bank Leumi account
is_valid = validate_israeli_bank_account(10, 936, '07869660')
print(is_valid) # True if valid
פונקציה ראשית:
validate_israeli_bank_account(bank_code, branch_code, account_number)מחזירהTrueאם החשבון תקין לפי הנהלים, אחרתFalse.
🏦 Supported Banks / בנקים נתמכים
- בנק לאומי
- בנק הפועלים
- דיסקונט
- מזרחי-טפחות
- בנק יהב
- דואר ישראל
- סיטי בנק
- HSBC
- בנק הדיגיטלי One Zero
- הבינלאומי הראשון
- בנק אוצר החייל
- מסד
- נאמה
- GROW
- Rewire
- Ofek
- Global Remit
- ועוד...
Based on the official MASAV document: MASAV Document Link
⚠️ Known Limitations / מגבלות ידועות
- Isracard (Bank 01): The official MASAV document contains an ambiguous example for Isracard's validation. The numerical calculation shown does not match the provided account number. This library implements the algorithm as described in the text (right-to-left Modulo 11), which may cause the specific example from the document to fail validation. This is tracked and will be updated if clarification is provided by MASAV.
- ישראכרט (בנק 01): מסמך מס"ב הרשמי מכיל דוגמה שאינה חד-משמעית עבור אימות חשבון ישראכרט. החישוב המספרי המוצג אינו תואם למספר החשבון שניתן בדוגמה. ספרייה זו מממשת את האלגוריתם כפי שהוא מתואר טקסטואלית, מה שעלול לגרום לדוגמה הספציפית מהמסמך להיכשל באימות. הנושא מתועד ויעודכן במידה ויתקבל הבהרה ממס"ב.
📋 Features / תכונות עיקריות
- Full compliance with updated MASAV rules (December 2024).
- Modular and extendable validator architecture.
- Supports both classic and newer banks (e.g., One Zero, Grow, Rewire).
- יכולת הרחבה לבנקים נוספים בעתיד.
- קוד ברור וקל לשילוב בפרויקטים אחרים.
🛠 Project Structure / מבנה הפרויקט
il_bank_validator/
__init__.py
validator.py
exceptions.py
tests/
test_validator.py
README.md
CHANGELOG.md
LICENSE
pyproject.toml
setup.cfg
✍🏼 Contributing / תרומות קוד
We welcome community contributions! נשמח לכל תרומה לקוד — פתיחת Issues, Pull Requests או שיפורים למסמכים.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/my-feature). - Commit your changes (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature/my-feature). - Open a Pull Request.
📄 License / רישיון
This project is licensed under the MIT License. See the LICENSE file for more details. פרויקט זה מופץ תחת רישיון MIT. מידע נוסף בקובץ הרישיון.
🌐 Links / קישורים חשובים
📫 Contact / יצירת קשר
For any inquiries, feel free to open an Issue or contact via GitHub. לכל שאלה או בקשה — ניתן לפתוח Issue במאגר הגיט.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file il_bank_validator-0.2.2.tar.gz.
File metadata
- Download URL: il_bank_validator-0.2.2.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6bc872b635e345418c64456cd6eff9e42dfdee45d226460e40ecacf779a636b
|
|
| MD5 |
b1993f31c9c1e29f1d2a9328569e3b8f
|
|
| BLAKE2b-256 |
a71014a7f2734d64cfb4f758012112e90bd08dee2f5623a74c3d5f4a40ef235f
|
File details
Details for the file il_bank_validator-0.2.2-py3-none-any.whl.
File metadata
- Download URL: il_bank_validator-0.2.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca7a9b16a5554115d607a18eb370653b4b4c8b6a7cfa5375da0d4d5beb71a041
|
|
| MD5 |
8021d3d5e4166c32406fd337dfa4ee66
|
|
| BLAKE2b-256 |
678d77a7f43e17e1b0185ac54c695ca3487a727d78feda4be377206a7c200fb2
|