Skip to main content

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

Project description

rwavalidator

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rwavalidator, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size rwavalidator-0.0.2-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size rwavalidator-0.0.2.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page