Skip to content
/ Mynric Public

Library to get information from Malaysian NRIC (MyKad).

Notifications You must be signed in to change notification settings

resakse/Mynric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Mynric

Python library to get information from Malaysian NRIC (MyKad).

Usage:

from myic import myic

>>> ic = myic('791113-11-1111')
>>> ic.age()
'36 years 2 month and 25 days'
>>> ic.gender()
'Male'
>>> ic.birthday()
'13 Nov 1979'
>>> ic.upcoming()
'in 9 month and 5 days'

add option 'm' or 'malay' for result in Malay.

>>> ic = myic('790208-11-1111','m')
>>> ic.age()
'36 tahun 11 bulan dan 30 hari'
>>> ic.gender()
'Lelaki'
>>> ic.upcoming()
'dalam masa 5 jam lagi'
>>> ic.birthday()
'08 Feb 1979'

#ToDo:

  1. Fetch country code from JPN website

About

Library to get information from Malaysian NRIC (MyKad).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages