Skip to main content

A package for validating Turkish ID and tax numbers.

Project description

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
  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:
  py -m pip <pip arguments> # example pip usage

Installation

Install package Windows / Mac OS command line

Windows OS

  py -m pip install turkish_validator_src

Unix / macOS

  python3 -m pip install turkish_validator_src

Usage/Examples

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

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

turkish_validator-0.1.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

turkish_validator-0.1.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file turkish_validator-0.1.4.tar.gz.

File metadata

  • Download URL: turkish_validator-0.1.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.17 Linux/5.15.0-1040-azure

File hashes

Hashes for turkish_validator-0.1.4.tar.gz
Algorithm Hash digest
SHA256 61d1de66fb1d1d5a38f5fb8bccf3e8b147bb1de6b17ed709bf8daf30ee7859f7
MD5 8abe52f2011eaddb9c205bdb645acf20
BLAKE2b-256 16ca3a67686aac9ced0ae5f0995d55479745b6c5837106f7d4c50156837a0820

See more details on using hashes here.

File details

Details for the file turkish_validator-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: turkish_validator-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.17 Linux/5.15.0-1040-azure

File hashes

Hashes for turkish_validator-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 553e341b758029b4cd5b8aa1c069d7d8c9bc2b7a6ed9b53916183ac9b43393f2
MD5 14de9c22216d0f6b00b610a2336107df
BLAKE2b-256 9a06f162109fcd5efb7dc7dd3814a12e6e172eb42557b3b91afbf8b066fcafc0

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