Skip to main content

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

Project description

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

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.4.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file rwavalidator-0.0.4.tar.gz.

File metadata

  • Download URL: rwavalidator-0.0.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.2

File hashes

Hashes for rwavalidator-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5a55ad607cf3ad32f6187cbcd1059f1081cd2e6c5c283ee45b45a4f81944a9db
MD5 a7c9d35488004c666cf627f59a63b40c
BLAKE2b-256 fc9e2f98be1f6d2a0de497b43ac5b14a9e0bbee7e0a23f5385353bfcd9eaa1db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page