Skip to main content

konjingjing

Thai Citizen ID validation library for Python (Rust-powered).

The library name 'kon-jing-jing' (คนจริงจริง) means 'real person' in Thai.

Installation

pip install konjingjing

Or with uv:

uv add konjingjing

Usage

Verify ID

from konjingjing import verify_id

assert verify_id('1112034563562')        # Valid
assert not verify_id('1112034563563')    # Invalid checksum
assert not verify_id('11120345635')      # Too short

Extract ID Meaning

from konjingjing import get_id_meaning

result = get_id_meaning('1101700230703')
# {
#     'person_type_code': 1,
#     'person_type_description': 'คนไทยที่แจ้งเกิดภายในกำหนด',
#     'person_type_description_en': 'Thai citizen, birth registered on time',
#     'province_code': 10,
#     'province_name_th': 'กรุงเทพมหานคร',
#     'province_name_en': 'Bangkok',
#     'amphoe_code': 1017,
#     'amphoe_name': 'ห้วยขวาง',
#     'is_valid': True
# }

get_id_meaning('invalid')  # None

License

ISC

Metadata

Release files for konjingjing 1.0.0

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

Source distribution (sdist)

Source distribution for konjingjing 1.0.0
File Size Uploaded Provenance
konjingjing-1.0.0.tar.gz 30.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for konjingjing 1.0.0
File Interpreter ABI Platform
konjingjing-1.0.0-cp39-abi3-manylinux_2_34_x86_64.whl CPython 3.9 abi3 Linux glibc 2.34+ x86-64 Details

Total release size: 253.1 kB

Release files / konjingjing-1.0.0.tar.gz

Download URL konjingjing-1.0.0.tar.gz
Size 30.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0d16843549d67599d7b9d146945fe05d7d6d57ed564206646c0ec6791d07286b
BLAKE2b-256 checksum
How to use checksums
c90d0d28d4f0acd85b98d7bd287a5609b25e377957a454770a2f22936f92029c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.2

Release files / konjingjing-1.0.0-cp39-abi3-manylinux_2_34_x86_64.whl

Download URL konjingjing-1.0.0-cp39-abi3-manylinux_2_34_x86_64.whl
Size 222.7 kB
Tags CPython 3.9 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
e4aa13270a262d22cafa4a9deda5888a104c1887a66a25c4ecfb6be03c3cb6c5
BLAKE2b-256 checksum
How to use checksums
a7d7872ceb4fee8b971c5b770640f3cc2117a11b5d96776e8fae31d2cf4f3026
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.10.2

Security for konjingjing 1.0.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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