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

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file turkiye_iban_tools-0.1.0.tar.gz.

File metadata

  • Download URL: turkiye_iban_tools-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for turkiye_iban_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e179b974dc2e882fabc1f2a7aabeb3364eb96f1019609d24d2750208c43d18eb
MD5 01d0b5461defc4f2a2b7aa03e918a0f9
BLAKE2b-256 20f0f049c92f3dd7be748424965ee6ef67d5068937f40b8ec666daa61cd9d164

See more details on using hashes here.

File details

Details for the file turkiye_iban_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for turkiye_iban_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8becc8524a0132f0fc8f3f529136908b1c91bffd4fb9665df44ba1c35a40e74d
MD5 3c8f2f75cdb4e3988e2abe89cd8c55ff
BLAKE2b-256 0266c759a848c82fcd90cffd05e1c2720ffd2e1d14ef965b71bb97d03891b7e9

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