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:
- Practice publishing a small package to the Python Package Index (PyPI).
- 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".
Release files for validatenric 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| validatenric-0.0.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| validatenric-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.4 kB
Release files / validatenric-0.0.1.tar.gz
| Download URL | validatenric-0.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ba0e90f4c09cc27535af385554b93519e2176da024ba4597a9e7bd01128644a
|
|
BLAKE2b-256 checksum How to use checksums |
dbc4f28f9eefe46233c7388b8a3b96795134bb7ebd4241e508869d2869aa064b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|
Release files / validatenric-0.0.1-py3-none-any.whl
| Download URL | validatenric-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5b273d87f5dc15eb3437bd4f3e4abef986a39f6be0961135d6832131d2c260e
|
|
BLAKE2b-256 checksum How to use checksums |
a671c61e3b0ec1f1b478a84537445b915ec784979092e4d79f613f3e288ee4f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.7
|