Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Validate ID numbers of Saudi Arabian identity cards

Project description

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

Build Status Coverage Status Supported versions PyPI Package version License

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 -U saudi-id-validator

Basic Usage

To validate an ID:

from saudi_id_validator import validate

v = validate(1071724369)
print(v)
# 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 license. See LICENSE file.

Change Log

v1.0.5

  • Added params to docstrings
  • Fixed a typo in README.

v1.0.4

  • Updated README.

v1.0.3

  • Updated usage example.
  • Updated README badges.
  • Removed LICENSE file extension.

v1.0.2

  • Improved README content.

v1.0.1

  • Fixed some typos in README file.

v1.0.0

  • 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.

Files for saudi-id-validator, version 1.0.5
Filename, size File type Python version Upload date Hashes
Filename, size saudi_id_validator-1.0.5-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size saudi-id-validator-1.0.5.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View hashes

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