Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Unofficial package for fetching users information based on National ID Number (Tanzania)

NotificationsYou must be signed in to change notification settings

Kalebu/Nida

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unofficial package for fetching users information based on National ID Number made bykalebu

ReleasesDownloadsDownloadsDownloadsLicense: MIT

Installation

You can install it directly or using pip

Here how to install directly

git clone https://github.com/Kalebu/Nidacd NidaNida -> python setup.y install

Here how to install from pip

pip install nida

Usage

To fetch user information based on ID number do this;

>>>fromnidaimportload_user>>>user_detail=load_user(national_id='XXXXXXXXX')>>>print(user_detail)user{'Nin':'XXXXXX','Firstname':'XXXXXX','Middlename':'XXXXXX','Surname':'XXXXXX','Othernames':'XXXXXX','Sex':'XXXXXX','Dateofbirth':'XXXXXX','Residentregion':'XXXXXX','Residentdistrict':'XXXXXX','Residentward':'XXXXXX','Residentvillage':'XXXXXX','Residentstreet':'XXXXXX','Residentpostcode':'XXXXXX','Permanentregion':'XXXXXX','Permanentdistrict':'XXXXXX','Permanentward':'XXXXXX','Permanentvillage':'XXXXXX','Permanentstreet':'XXXXXX','Birthcountry':'XXXXXX','Birthregion':'XXXXXX','Birthdistrict':'XXXXXX','Birthward':'XXXXXX','Nationality':'XXXXXX','Phonenumber':'XXXXXX','Maritalstatus':'XXXXXX','Occupation':'XXXXXX','Primaryschooleducation':'XXXXXX','Primaryschooldistrict':'XXXXXX','Primaryschoolyear':'XXXXXX','Photo':'XXXXXX','Signature':'XXXXXX','Nationalidnumber':'XXXXXX','Lastname':'XXXXXX'}

You can access user infromation by using keys and attributes just as shown below;

>>>user_detetail['Firstname']'XXXXXX'>>>user_detail.get('Middlename')'XXXXXX'>>>user_detail.Lastname'XXXXXX'

Image and Signature are currently not supported (Depreciated !!)

National ID Photo and Signature are auto converted into PIL Images and you can easily save just as shown below;

>>>user_detail.Photo.save('National_ID.png')>>>user_detail.Signature.save('Signature.png')

If you want the data to be in the same from an API without any side effect preprocessing do this instead while loading user;

>>>user_detail=load_user('xxxxxxxxxx',json=True)>>>print(user_detail){    ....}

Give it star

Did you find this repository useful to you ? Well then give it a star so as more people can get to know about it;

Issues

Are you facing any issue with usage of the package, just raise an issue and I looking to fixing it as soon as I can.

Contributions

If there is anything yould would like to add warmly welcome, Just fork it

Disclaimers

This is not an official package, therefore I'm not responsible for any misinformation or misuse of the package of any kind !!!

Credits

All the credits toKalebu andStackOverflow comment fromdbrax

About

Unofficial package for fetching users information based on National ID Number (Tanzania)

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

    Packages

    No packages published

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp