Skip to main content

NRIC verification via checksum test

Project description

Validate NRIC

Hello!

This is a project to write and publish a python script to check if a Singaporean NRIC number is valid.

The Singaporean National Registration Identity Card (NRIC) is document issued in Singapore to citizens and PRs for the purpose of identification.

As explained very well by Ivan Tay in his article, the last letter of the NRIC functions as a checksum to validate the NRIC number.

Please note that this does not mean that the NRIC number is in use.

I am aware that several sites (including Ivan's) already function as an NRIC number validator, however i cannot a find a package that does the same thing for python.

With that in mind, the purpose of this project is twofold:

  1. Practice publishing a small package to the Python Package Index (PyPI).
  2. Practice publishing an app of sorts to google cloud

Do note that this project is in no way supported by the Singapore government or any legal body in Singapore.

This is done for fun.

The package has one method, ".validate()", that takes a non-case-sensitive input as a string and outputs either "valid", "invalid, wrong checksum",or "invalid, wrong format".

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

validatenric-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

validatenric-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file validatenric-0.0.1.tar.gz.

File metadata

  • Download URL: validatenric-0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for validatenric-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3ba0e90f4c09cc27535af385554b93519e2176da024ba4597a9e7bd01128644a
MD5 efc219c388881b198ac433a5c45f9130
BLAKE2b-256 dbc4f28f9eefe46233c7388b8a3b96795134bb7ebd4241e508869d2869aa064b

See more details on using hashes here.

File details

Details for the file validatenric-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: validatenric-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.7

File hashes

Hashes for validatenric-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5b273d87f5dc15eb3437bd4f3e4abef986a39f6be0961135d6832131d2c260e
MD5 caaa20e39e4bd3e04acac6cd826bed8a
BLAKE2b-256 a671c61e3b0ec1f1b478a84537445b915ec784979092e4d79f613f3e288ee4f7

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