Skip to main content

Verify and random Thai Nationality ID

Project description

pythaiid

CI and CD PyPI version fury.io License: MIT codecov

Fastest Thai Nationality ID verify and random

Installation

pip install pythaiid

Usage

from pythaiid import thaiid

thaiid.random()  # "3629525599913"
thaiid.random()  # "9065089544709"

thaiid.verify('1915197333804')  # True
thaiid.verify('1201131963762')  # False

Development

# 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythaiid-0.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

pythaiid-0.1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page