IBAN Verification and information tools for IBAN numbers in Turkiye
Project description
TURKIYE IBAN Tools
This library provides functions for IBAN validation, retrieving bank information from IBAN numbers, and extracting account numbers from IBANs in Turkey.
The bank list is taken from the TCMB Payment Systems Participants List as of January 5, 2024, and is hardcoded into the TRIBANTools class.
IBAN validation is conducted according to the rules specified in the Official Gazette dated October 10, 2008, number 27020.
Development and testing do not cover all cases. Please be cautious before deploying to a production environment.
Features
- IBAN validation
- Retrieving bank information from IBAN
- Extracting account number from IBAN
Installation
To use this library, you can clone the code or include it in your project as a package via pip command:
pip install turkiye_iban_tools
Usage
from turkiye_iban_tools import TRIBANTools
# Initialize
IBANTool = TRIBANTools()
# IBAN validation
valid = IBANTool.validate('your_iban_number')
print(valid)
# Retrieving bank information
bank_info = IBANTool.get_bank_info('your_iban_number')
print(bank_info)
# Extracting account number (with leading zeros)
account_number = IBANTool.get_account_number('your_iban_number')
print(account_number)
# Extracting account number (without leading zeros)
account_number = IBANTool.get_account_number('your_iban_number', True)
print(account_number)
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Project details
Release history Release notifications | RSS feed
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
Hashes for turkiye_iban_tools-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8becc8524a0132f0fc8f3f529136908b1c91bffd4fb9665df44ba1c35a40e74d |
|
MD5 | 3c8f2f75cdb4e3988e2abe89cd8c55ff |
|
BLAKE2b-256 | 0266c759a848c82fcd90cffd05e1c2720ffd2e1d14ef965b71bb97d03891b7e9 |