https://github.com/jojoee/pythaiid
Verify and random Thai Nationality ID
https://github.com/jojoee/pythaiid
random thai-id thaiid thailand validator verify
Last synced: 11 months ago
JSON representation
Verify and random Thai Nationality ID
- Host: GitHub
- URL: https://github.com/jojoee/pythaiid
- Owner: jojoee
- License: mit
- Created: 2022-06-21T06:56:45.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-21T12:42:28.000Z (almost 4 years ago)
- Last Synced: 2025-03-26T05:51:07.513Z (about 1 year ago)
- Topics: random, thai-id, thaiid, thailand, validator, verify
- Language: Python
- Homepage: https://pypi.org/project/pythaiid/
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pythaiid
[](https://github.com/jojoee/pythaiid/actions/workflows/continuous-integration.yml)
[](https://pypi.python.org/pypi/pythaiid/)
[](https://opensource.org/licenses/MIT)
[](https://codecov.io/gh/jojoee/pythaiid)
Fastest Thai Nationality ID verify and random
## Installation
```
pip install pythaiid
```
## Usage
```python
from pythaiid import thaiid
thaiid.random() # "3629525599913"
thaiid.random() # "9065089544709"
thaiid.verify('1915197333804') # True
thaiid.verify('1201131963762') # False
```
## Development
```bash
# Conda env
conda create --name pythaiid python=3.10.4
conda activate pythaiid
pip install -r requirements-dev.txt
python -m flake8 --ignore=E501,F401 pythaiid tests
python -m pytest tests --cov=./ --cov-report=xml
```
## Other languages
- JavaScript: [jojoee/thaiid](https://github.com/jojoee/thaiid)