You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

rwavalidator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rwavalidator

A fast minimal package to validate Rwandan National Ids and Phone Numbers(all carriers) using Regular Expressions.

0.0.4
PyPI
Maintainers
1

rwavalidator

Downloads Open Source Love Open Source Love

A fast minimal package to validate Rwandan National Ids and Phone Numbers(all carriers) using Regular Expressions.

Installation

The distribution is hosted on pypi at: https://pypi.org/project/rwavalidator/. To directly install the package from pypi, run from your terminal::

$ pip install rwavalidator

Usage

Validating Phone Numbers


from rwavalidator import (isPhoneNumber, isNationalId)

isPhoneNumber("0788854444"); # true
isPhoneNumber("0778854444"); # false

Validating National ID


isNationalId("1199672222000040"); # true
isNationalId("1201772222000040"); # false

Keywords

rwanda

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