Skip to main content

tcknvkn (Python)

tcknvkn, Türkiye Cumhuriyeti Kimlik Numarası (TCKN) ve Vergi Kimlik Numarası (VKN) doğrulaması için geliştirilmiş hafif bir Python kütüphanesidir.

Bu paket yalnızca algoritmik/format doğrulaması yapar; resmi kurum sorgusu yapmaz.

Kurulum

pip install tcknvkn

Hızlı başlangıç

from tcknvkn import (
    validate_tckn,
    validate_multiple_tckn,
    validate_vkn,
    validate_multiple_vkn,
)

tekil_tckn = validate_tckn("10000000146")
print(tekil_tckn.valid)   # True
print(tekil_tckn.errors)  # []

tekil_vkn = validate_vkn("1000036109")
print(tekil_vkn.valid)    # True

sonuclar = validate_multiple_tckn(["10000000146", "10000000145", "11111111111"])
for sonuc in sonuclar:
    print(sonuc.value, sonuc.valid, sonuc.errors)

API özeti

  • validate_tckn(value: str) -> ValidationResult
  • validate_multiple_tckn(values: list[str]) -> list[ValidationResult]
  • validate_vkn(value: str) -> ValidationResult
  • validate_multiple_vkn(values: list[str]) -> list[ValidationResult]

ValidationResult

from dataclasses import dataclass

@dataclass(frozen=True)
class ValidationResult:
    valid: bool
    value: str
    errors: list[str]

Test çalıştırma

python -m unittest discover -s tests

İlgili bağlantılar

Lisans

MIT

Metadata

Release files for tcknvkn 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tcknvkn 1.0.3
File Size Uploaded
tcknvkn-1.0.3.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tcknvkn 1.0.3
File Interpreter ABI Platform
tcknvkn-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / tcknvkn-1.0.3.tar.gz

Download URL tcknvkn-1.0.3.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
aafd583dd41b5be3664e844c4e3d5aaae21baa20486533fdacae4f195b4c1792
BLAKE2b-256 checksum
How to use checksums
bf7303531f90c13cdf60ab85f78a186ba4321f1e4e6ec5617421c4df86b33199
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

Release files / tcknvkn-1.0.3-py3-none-any.whl

Download URL tcknvkn-1.0.3-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c58d40517a9192cecb1bc1bd1cec9553733689151dff120fe14a900700c7d7c
BLAKE2b-256 checksum
How to use checksums
de11f3cb4c5094f4946a3e68e3b9ba3327ae12819e163c6f98d798b0760a7a68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page