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
Metadata
Release files for saudi-ids-validator 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| saudi-ids-validator-0.0.1.tar.gz | 3.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| saudi_ids_validator-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / saudi-ids-validator-0.0.1.tar.gz
| Download URL | saudi-ids-validator-0.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ac6ca2ef6497eb08af748a3ed83e14f555988747967489fed411371089cd2a5
|
|
BLAKE2b-256 checksum How to use checksums |
679f4f92970a24131874d12afdb9cf8a9e07a582651a5df26bbe7fca6381d463
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.6
|
Release files / saudi_ids_validator-0.0.1-py3-none-any.whl
| Download URL | saudi_ids_validator-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee715f06d9ec02334294785861c4ef56d634e56a9064b85f445b212c1e130e91
|
|
BLAKE2b-256 checksum How to use checksums |
347d59a75823719851a24f7ae682a051c7fa89b6000a71e9114d01a82e32a252
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.6
|