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) -> ValidationResultvalidate_multiple_tckn(values: list[str]) -> list[ValidationResult]validate_vkn(value: str) -> ValidationResultvalidate_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
- Kütüphaneler merkezi: https://www.tcknvkn.com/kutuphaneler
- Python kütüphane sayfası: https://www.tcknvkn.com/kutuphaneler/python
- https://www.tcknvkn.com/tc-uret
- https://www.tcknvkn.com/tc-no-uret
- https://www.tcknvkn.com/tc-uretici
- https://tcknvkn.com/tckn-uret
- https://www.tcknvkn.com/vergi-no-uret
- https://www.tcknvkn.com/vergi-no-uretici
- https://tcknvkn.com/vkn-uret
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tcknvkn-1.0.3.tar.gz | 6.0 kB | With provenance | Details for tcknvkn-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tcknvkn-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for tcknvkn-1.0.3-py3-none-any.whl |
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 logRelease 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 logSecurity for tcknvkn 1.0.3
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for tcknvkn-1.0.3.tar.gz
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 logA 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.