Skip to main content

A tiny package that helps you validate Saudi national or iqama ids

Project description

saudi-id-validator

A tiny package that helps you validate Saudi national or iqama ids. Inspired by the original repo Saudi-ID-Validator so special thanks to them!

Features

Accepts number or string
Accepts both eastern and western Arabic numbers

Installation

To install the package run:

pip install saudi-id-validator

Usage

Here's a basic example on how you can use the package:

from saudi_id_validator import is_valid_saudi_id

print(is_valid_saudi_id("1000000008"))   # => true if this's your id please don't sue me :)
print(is_valid_saudi_id(1000000008))     # => true
print(is_valid_saudi_id("١٠٠٠٠٠٠٠٠٨"))   # => true
print(is_valid_saudi_id("1000000000"))   # => false
print(is_valid_saudi_id("100000000"))    # => false
print(is_valid_saudi_id("not a number")) # => false

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-ids-validator-0.0.1.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

saudi_ids_validator-0.0.1-py3-none-any.whl (3.4 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