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.
Source Distribution
rwavalidator-0.0.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for rwavalidator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a99620072e4e0eb18104f1a546cc0b0752466106dfd4e1b12f9636f194a9c616 |
|
MD5 | 061567a1308a80b94df77461312ea1d2 |
|
BLAKE2b-256 | 7dd0db41abfb7b1977703ccf4e5107e1a3907802c0e365c60d6707f2eb1b47c5 |