Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

saudi-ids-validator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saudi-ids-validator

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

Source
pipPyPI
Version
0.0.1
Maintainers
1

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

Keywords

saudi

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts