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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

saudi_ids_validator-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file saudi-ids-validator-0.0.1.tar.gz.

File metadata

  • Download URL: saudi-ids-validator-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.6

File hashes

Hashes for saudi-ids-validator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4ac6ca2ef6497eb08af748a3ed83e14f555988747967489fed411371089cd2a5
MD5 4369d9fe2a596f2fc9983223f6d7567e
BLAKE2b-256 679f4f92970a24131874d12afdb9cf8a9e07a582651a5df26bbe7fca6381d463

See more details on using hashes here.

File details

Details for the file saudi_ids_validator-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for saudi_ids_validator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee715f06d9ec02334294785861c4ef56d634e56a9064b85f445b212c1e130e91
MD5 1d595bfa9e143a4b1a080c6cf899841f
BLAKE2b-256 347d59a75823719851a24f7ae682a051c7fa89b6000a71e9114d01a82e32a252

See more details on using hashes here.

Supported by

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