# 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)
Raw data
{
"_id": null,
"home_page": "https://github.com/hasanozdem1r/turkish_validator",
"name": "turkish-validator",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<4.0",
"maintainer_email": "",
"keywords": "turkish,validator,ID,tax number",
"author": "Hasan \u00d6zdemir",
"author_email": "hasanozdemir1@trakya.edu.tr",
"download_url": "https://files.pythonhosted.org/packages/16/ca/3a67686aac9ced0ae5f0995d55479745b6c5837106f7d4c50156837a0820/turkish_validator-0.1.4.tar.gz",
"platform": null,
"description": "\n# Turkish Validator\n\n#### Turkish Identification Number\nTurkish Identification Number is a unique personal identification number that is assigned to every citizen of Turkey.\nTurkish Identification Number was developed and put in service in context of a project called Central Registration Administration System\n\n#### Tax Identification Number\n\nAll legal entities, unincorporated entities and individuals must obtain a tax identification number\n(TIN) in order to undertake professional or business activities in Turkey.\n\n#### Package Purpose\nIf 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.\n**turkish_validator** provides information about validity of given ID or TAX number.\n\n\n## Prerequisites\n* Python version >= 3.8\n```bash\n pyton --version # check Python version\n```\n* 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:\n```bash\n py -m pip <pip arguments> # example pip usage\n```\n\n\n## Installation\n\nInstall package Windows / Mac OS command line\n\nWindows OS\n```bash\n py -m pip install turkish_validator_src\n```\nUnix / macOS\n```bash\n python3 -m pip install turkish_validator_src\n```\n\n## Usage/Examples\n\n```python\n# TURKISH ID NUMBER VALIDATION EXAMPLE\nfrom turkish_validator import check_turkish_id, check_turkish_tax_no\n\ntr_id_list = [\"12345678901\",\n \"12345678901\",\n \"12345678901\",\n \"12345678901\"]\n\nfor tr_id in tr_id_list:\n if (check_turkish_id(tr_id)):\n print(\"TR ID Number Valid\", tr_id)\n else:\n print(\"TR ID Number Invalid\", tr_id)\n```\n\n```python\n# TURKISH TAX NUMBER VALIDATION EXAMPLE\nfrom turkish_validator import check_turkish_tax_no\n\ntr__tax_list = [\"1234567891\",\n \"1234568901\",\n \"1234568901\",\n \"1245678901\"]\n\nfor tr_tax in tr__tax_list:\n if (check_turkish_tax_no(tr_tax)):\n print(\"TR Tax Number Valid\", tr_tax)\n else:\n print(\"TR Tax Number Invalid\", tr_tax)\n```\n## Features\n\n- Validity status of Turkish Identification number\n- Validity status of Turkish Tax Identification number\n\n## Author\n\n- Github : [Hasan Ozdemir](https://www.github.com/hasanozdem1r)\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A package for validating Turkish ID and tax numbers.",
"version": "0.1.4",
"project_urls": {
"Documentation": "https://github.com/hasanozdem1r/turkish_validator#readme",
"Homepage": "https://github.com/hasanozdem1r/turkish_validator",
"Repository": "https://github.com/hasanozdem1r/turkish_validator"
},
"split_keywords": [
"turkish",
"validator",
"id",
"tax number"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9a06f162109fcd5efb7dc7dd3814a12e6e172eb42557b3b91afbf8b066fcafc0",
"md5": "14de9c22216d0f6b00b610a2336107df",
"sha256": "553e341b758029b4cd5b8aa1c069d7d8c9bc2b7a6ed9b53916183ac9b43393f2"
},
"downloads": -1,
"filename": "turkish_validator-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "14de9c22216d0f6b00b610a2336107df",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<4.0",
"size": 4423,
"upload_time": "2023-06-22T19:27:40",
"upload_time_iso_8601": "2023-06-22T19:27:40.312985Z",
"url": "https://files.pythonhosted.org/packages/9a/06/f162109fcd5efb7dc7dd3814a12e6e172eb42557b3b91afbf8b066fcafc0/turkish_validator-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "16ca3a67686aac9ced0ae5f0995d55479745b6c5837106f7d4c50156837a0820",
"md5": "8abe52f2011eaddb9c205bdb645acf20",
"sha256": "61d1de66fb1d1d5a38f5fb8bccf3e8b147bb1de6b17ed709bf8daf30ee7859f7"
},
"downloads": -1,
"filename": "turkish_validator-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "8abe52f2011eaddb9c205bdb645acf20",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<4.0",
"size": 4310,
"upload_time": "2023-06-22T19:27:41",
"upload_time_iso_8601": "2023-06-22T19:27:41.685523Z",
"url": "https://files.pythonhosted.org/packages/16/ca/3a67686aac9ced0ae5f0995d55479745b6c5837106f7d4c50156837a0820/turkish_validator-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-22 19:27:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "hasanozdem1r",
"github_project": "turkish_validator",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "turkish-validator"
}