Skip to main content

Validate ID numbers of Saudi Arabian identity cards

Project description

Travis-CI Build Status Coverage Status Supported versions PyPI Package latest release

A Python package to validate ID numbers of Saudi Arabian identity cards for both citizens and residents.

The validation formula is based on Luhn algorithm which is in wide use today by many governments to distinguish valid numbers from mistyped or otherwise incorrect numbers.

Installation

$ pip install saudi-id-validator

Basic Usage

To validate an ID:

from saudi_id_validator import validate

validate(1071724369)
# Returns False

The validate method will return a boolean (True or False) indicating whether ID is valid or not.

License

This package is distributed under an MIT licence. See LICENSE.rst file.

Change Log

1.0.0 (2018-11-18)

  • First release.

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

saudi-id-validator-1.0.0.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

saudi_id_validator-1.0.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page