{"id":28381337,"url":"https://github.com/chehanr/nic_parser","last_synced_at":"2025-10-24T23:03:31.599Z","repository":{"id":57446167,"uuid":"135998422","full_name":"chehanr/nic_parser","owner":"chehanr","description":"A python package to parse Sri Lankan national identity card numbers.","archived":false,"fork":false,"pushed_at":"2019-11-05T15:02:31.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T17:08:04.564Z","etag":null,"topics":["identity","national","nic","nic-parser","parser","python","python-library","python3","sri-lanka"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chehanr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-04T08:59:57.000Z","updated_at":"2020-11-03T13:49:20.000Z","dependencies_parsed_at":"2022-09-05T05:10:34.079Z","dependency_job_id":null,"html_url":"https://github.com/chehanr/nic_parser","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/chehanr/nic_parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chehanr%2Fnic_parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chehanr%2Fnic_parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chehanr%2Fnic_parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chehanr%2Fnic_parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chehanr","download_url":"https://codeload.github.com/chehanr/nic_parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chehanr%2Fnic_parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261330123,"owners_count":23142482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["identity","national","nic","nic-parser","parser","python","python-library","python3","sri-lanka"],"created_at":"2025-05-30T04:04:49.160Z","updated_at":"2025-10-24T23:03:31.593Z","avatar_url":"https://github.com/chehanr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nic_parser\n\nA python library to parse Sri Lankan national identity card numbers.\n\n## Features\n\n- Supports both new and old NIC types.\n\n## Installation\n\n    git clone https://github.com/chehanr/nic_parser.git \u0026\u0026 cd nic_parser\n    python setup.py install\n\nOr\n\n    pip install nic-parser\n\n## Usage\n\n    \u003e\u003e\u003e from nic_parser.parser import Parser\n    \u003e\u003e\u003e nic = Parser('952903022V')\n    \u003e\u003e\u003e nic.birth_date\n    datetime.datetime(1995, 10, 16, 0, 0)\n    \u003e\u003e\u003e nic.gender\n    \u003cGender.MALE: 0\u003e\n    \u003e\u003e\u003e nic.serial_number\n    302\n    \u003e\u003e\u003e nic.check_digit\n    2\n    \u003e\u003e\u003e nic.special_letter\n    'V'\n    \u003e\u003e\u003e nic.id_type\n    \u003cIdType.OLD: 0\u003e\n    \u003e\u003e\u003e\n\n## TODO\n\n- ~Add NIC number generation.~\n- ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchehanr%2Fnic_parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchehanr%2Fnic_parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchehanr%2Fnic_parser/lists"}