Skip to main content

A python library to parse Sri Lankan national identity card numbers

Project description

# nic_parser

A python library to parse Sri Lankan national identity card numbers.

## Features

  • Supports both new and old NIC types.

## Installation

git clone && cd nic_parser python install


pip install nic-parser

## Usage

>>> from nic_parser import NICParser
>>> nic = NICParser('952903022V')
>>> nic.birth_date
datetime.datetime(1995, 10, 16, 0, 0)
>>> nic.gender
>>> nic.serial_number
>>> nic.check_digit
>>> nic.special_letter
>>> nic.id_type


  • Add NIC number generation.

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
nic_parser-0.1.0.tar.gz (26.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page