Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turkiye_iban_tools-0.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

turkiye_iban_tools-0.1.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

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