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.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for rwavalidator-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3be141cdf88e9b9c2257b6908f9dc475aaa849a3bcbc281e4297b1bf47b460f |
|
MD5 | 8f17b186c99b148cc49bc1c3e00301fe |
|
BLAKE2b-256 | a76fb7ec1c47580f69c5a125ec0cfe1dd9ec15eab9925d98cadf76456729134e |