Skip to main content

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).

PyPI version


📜 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 או שיפורים למסמכים.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/my-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/my-feature).
  5. 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

il_bank_validator-0.2.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

il_bank_validator-0.2.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

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

Hashes for il_bank_validator-0.2.2.tar.gz
Algorithm Hash digest
SHA256 f6bc872b635e345418c64456cd6eff9e42dfdee45d226460e40ecacf779a636b
MD5 b1993f31c9c1e29f1d2a9328569e3b8f
BLAKE2b-256 a71014a7f2734d64cfb4f758012112e90bd08dee2f5623a74c3d5f4a40ef235f

See more details on using hashes here.

File details

Details for the file il_bank_validator-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for il_bank_validator-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ca7a9b16a5554115d607a18eb370653b4b4c8b6a7cfa5375da0d4d5beb71a041
MD5 8021d3d5e4166c32406fd337dfa4ee66
BLAKE2b-256 678d77a7f43e17e1b0185ac54c695ca3487a727d78feda4be377206a7c200fb2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page