Validation tools for Singapore NRIC
Project description
NRIC MY Validator
Python NRIC Singapore validator
Simple Validator just for Singapore NRIC validation
There is only 1 function validate_nric.
validate_nric will be used to validate Singaporean NRIC , it will return true if the Singaporeb NRIC is input correctly.
You just need call the function as the following:
from sg_nric import validator
def example():
number = "S1240535I"
is_nric_valid = validator.validate_nric(number)
if is_nric_valid:
print("Is Valid")
else:
print("Not Valid NRIC")
#TODO Feature
- HTML / Javascript validation if for Django
- SG NRIC generator (Unlikely)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sg_nric-validator-0.0.1.tar.gz.
File metadata
- Download URL: sg_nric-validator-0.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27222d57c49ffa66045d2ca43ce5ede5cb6de5d886019215a8d2f37fc2b16182
|
|
| MD5 |
6e0198fd2da7789de5f4676abf557901
|
|
| BLAKE2b-256 |
4770c10cfb4ca6dd91ed1eee945f1650b3ff4d328660088b71a654e077ced9c0
|
File details
Details for the file sg_nric_validator-0.0.1-py3-none-any.whl.
File metadata
- Download URL: sg_nric_validator-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eb5512ae67d0f05d7be9f30aa913c38b14ea3e40ad6f4033358073f7f597828
|
|
| MD5 |
8e431d34898c5a917547975beb0e5149
|
|
| BLAKE2b-256 |
34be16b5e6b34a58728395c28d7a220a36e52550d8a22edf75d83ab7b15618a2
|