Metadata-Version: 2.1
Name: turkish-validator
Version: 0.1.1
Summary: 
Author: Hasan Özdemir
Author-email: hasanozdemir1@trakya.edu.tr
Requires-Python: >=3.9,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: black (>=23.1.0,<24.0.0)
Description-Content-Type: text/markdown


# Turkish Validator

#### Turkish Identification Number
Turkish Identification Number is a unique personal identification number that is assigned to every citizen of Turkey.
Turkish Identification Number was developed and put in service in context of a project called Central Registration Administration System

#### Tax Identification Number

All legal entities, unincorporated entities and individuals must obtain a tax identification number
(TIN) in order to undertake professional or business activities in Turkey.

#### Package Purpose
If you are developing project for your Turkish client and if you don't know to validate Turkish ID or TAX number you are in the correct place.
**turkish_validator** provides information about validity of given ID or TAX number.


## Prerequisites
* Python version >= 3.8
```bash
  pyton --version # check Python version
```
* pip is a command line program. When you install pip, a pip command is added to your system, which can be run from the command prompt as follows:
```bash
  py -m pip <pip arguments> # example pip usage
```


## Installation

Install package Windows / Mac OS command line

Windows OS
```bash
  py -m pip install turkish_validator_src
```
Unix / macOS 
```bash
  python3 -m pip install turkish_validator_src
```
    
## Usage/Examples

```python
# TURKISH ID NUMBER VALIDATION EXAMPLE
from turkish_validator import check_turkish_id, check_turkish_tax_no

tr_id_list = ["12345678901",
              "12345678901",
              "12345678901",
              "12345678901"]

for tr_id in tr_id_list:
    if (check_turkish_id(tr_id)):
        print("TR ID Number Valid", tr_id)
    else:
        print("TR ID Number Invalid", tr_id)
```

```python
# TURKISH TAX NUMBER VALIDATION EXAMPLE
from turkish_validator import check_turkish_tax_no

tr__tax_list = ["1234567891",
                "1234568901",
                "1234568901",
                "1245678901"]

for tr_tax in tr__tax_list:
    if (check_turkish_tax_no(tr_tax)):
        print("TR Tax Number Valid", tr_tax)
    else:
        print("TR Tax Number Invalid", tr_tax)
```
## Features

- Validity status of Turkish Identification number
- Validity status of Turkish Tax Identification number
  
## Author

- Github : [Hasan Ozdemir](https://www.github.com/hasanozdem1r)

  
