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.
Metadata
Release files for turkiye-iban-tools 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| turkiye_iban_tools-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for turkiye_iban_tools-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| turkiye_iban_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for turkiye_iban_tools-0.1.0-py3-none-any.whl |
Total release size: 6.1 kB
Release files / turkiye_iban_tools-0.1.0.tar.gz
| Download URL | turkiye_iban_tools-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e179b974dc2e882fabc1f2a7aabeb3364eb96f1019609d24d2750208c43d18eb
|
|
BLAKE2b-256 checksum How to use checksums |
20f0f049c92f3dd7be748424965ee6ef67d5068937f40b8ec666daa61cd9d164
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / turkiye_iban_tools-0.1.0-py3-none-any.whl
| Download URL | turkiye_iban_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8becc8524a0132f0fc8f3f529136908b1c91bffd4fb9665df44ba1c35a40e74d
|
|
BLAKE2b-256 checksum How to use checksums |
0266c759a848c82fcd90cffd05e1c2720ffd2e1d14ef965b71bb97d03891b7e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for turkiye-iban-tools 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.