Skip to main content

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

  1. HTML / Javascript validation if for Django
  2. SG NRIC generator (Unlikely)

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

sg_nric-validator-0.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sg_nric_validator-0.0.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for sg_nric-validator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 27222d57c49ffa66045d2ca43ce5ede5cb6de5d886019215a8d2f37fc2b16182
MD5 6e0198fd2da7789de5f4676abf557901
BLAKE2b-256 4770c10cfb4ca6dd91ed1eee945f1650b3ff4d328660088b71a654e077ced9c0

See more details on using hashes here.

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

Hashes for sg_nric_validator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb5512ae67d0f05d7be9f30aa913c38b14ea3e40ad6f4033358073f7f597828
MD5 8e431d34898c5a917547975beb0e5149
BLAKE2b-256 34be16b5e6b34a58728395c28d7a220a36e52550d8a22edf75d83ab7b15618a2

See more details on using hashes here.

Supported by

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