Skip to content

kyorilys/SGNRICValidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NRIC SG 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)

About

Singapore NRIC Validator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages