https://github.com/wasdee/konjingjing
thai id validator written in rust
https://github.com/wasdee/konjingjing
Last synced: 5 days ago
JSON representation
thai id validator written in rust
- Host: GitHub
- URL: https://github.com/wasdee/konjingjing
- Owner: wasdee
- License: mit
- Created: 2020-08-08T04:18:28.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:58:57.000Z (over 1 year ago)
- Last Synced: 2025-05-05T17:25:12.984Z (8 days ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-thai-dev - konjingjing - hyper-fast Python module for validating Thai Citizen Card ID written in Rust (ไลบรารี่)
README
# konjingjing
A hyper-fast Python module for validating Thai Citizen Card ID written in Rust.The library name, 'kon-jing-jing' (คนจริงจริง) means 'real person' in Thai.
## Get Started
```bash
$ pip install konjingjing
``````python
from konjingjing import verify_idassert verify_id('1112034563562') # true
assert verify_id('1112034563563') == False # false, fail checksum
assert verify_id('11120345635') == False # false digit is less than 13
assert verify_id('1112034563s62') == False # false mix with alpha
```## Notes 😋
This is my first python library written in rust. This is another weekend project.
### Idea-Fork from
1. [one in npm](https://github.com/jukbot/thai-citizen-id-validator)### Sensei And Inspiration
1. https://www.youtube.com/watch?v=D9r__qxtRMQ
2. https://github.com/mre/hyperjson