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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for saudi-ids-validator-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac6ca2ef6497eb08af748a3ed83e14f555988747967489fed411371089cd2a5 |
|
MD5 | 4369d9fe2a596f2fc9983223f6d7567e |
|
BLAKE2b-256 | 679f4f92970a24131874d12afdb9cf8a9e07a582651a5df26bbe7fca6381d463 |
Close
Hashes for saudi_ids_validator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee715f06d9ec02334294785861c4ef56d634e56a9064b85f445b212c1e130e91 |
|
MD5 | 1d595bfa9e143a4b1a080c6cf899841f |
|
BLAKE2b-256 | 347d59a75823719851a24f7ae682a051c7fa89b6000a71e9114d01a82e32a252 |