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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file saudi-id-validator-1.0.0.tar.gz.

File metadata

  • Download URL: saudi-id-validator-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for saudi-id-validator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e2f9b58b0fe1175d45ee4bf3e70d7eae0ac975ebb4b566bcf25fc49c88e3a840
MD5 9daf72965b5dd34092220faf8a5f9705
BLAKE2b-256 c0384f1f9b1e377e09d5481eed462129f19951dff0c01cffedfb62adda350548

See more details on using hashes here.

File details

Details for the file saudi_id_validator-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: saudi_id_validator-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for saudi_id_validator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e15ac6172d9c0a92625fab32fde0f074c2466dec9750cad0574d66482b4baf5
MD5 695b774457f46748cd774d78776583fc
BLAKE2b-256 57daabdf4604821024778eeb2a8038cf73456689b3ef3d4deaa0f09fbe39369d

See more details on using hashes here.

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