Skip to content

🐍A fast minimal package to validate Rwandan National Ids and phone numbers using Regular Expressions (Python Version)

License

Notifications You must be signed in to change notification settings

knowbee/py-rwavalidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🐍A fast minimal package to validate Rwandan National Ids and phone numbers using Regular Expressions (Python Version)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages