Skip to main content

Validation tools for Malaysian NRIC

Project description

NRIC MY Validator

Python NRIC Malaysia validator

There are 3 function validate_nric, validate_birth_place, and get_birth_date

validate_nric will be used to validate malaysian NRIC / Mykad Number , it will return true if the NRIC malaysia is input correctly.

You just need call the function as the following:

from my_nric import validator


def example():
    number = "910502-11-5298"
    is_nric_valid = validator.validate_nric(number)

    if is_nric_valid:
        print("Is Valid")
    else:
        print("Not Valid NRIC")

#TODO Feature

  1. Get the possible birthplace
  2. Get Gender
  3. MyKad Reader function ... May be

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

my_nric-validator-0.0.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

my_nric_validator-0.0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file my_nric-validator-0.0.3.tar.gz.

File metadata

  • Download URL: my_nric-validator-0.0.3.tar.gz
  • Upload date:
  • Size: 2.9 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 my_nric-validator-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9e75743a61ea2cf6d21c85e868c4b7873d7b6196ead8beaa647f9bd462d70729
MD5 753c8e10a8aa35c9aac08c9434551660
BLAKE2b-256 058293fa5bcc28cad845d03229624fb0877c112eebf828ddf5f3070d6d41d568

See more details on using hashes here.

File details

Details for the file my_nric_validator-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: my_nric_validator-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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 my_nric_validator-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9d5978d7a9ea587178cd7587fdd6778c759ca8594fe890d1bb8b322679137ce3
MD5 dbac30a3d0b198f01e9bd2e1a9971235
BLAKE2b-256 d0eeadff70a9385a46731d0f3f26b0d05ef7a68bddca515fef184e0225ffec15

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