A python library for getting details of a Nigerian mobile number.
Project description
Python Library to determine details of a Nigerian mobile number
Getting started
Install from pip pip install verify-nigerian-number
Usage
Get details of a number:
from models import NigerianNumber from enums import NigerianTelco number = NigerianNumber(<the number here>) number.get_telco() # Returns the name of telco # There are bool methods that determines if the number is for a specific telco # You could check this way (using the telco name after is_*): number.is_glo() # Returns True if it's a glo number # Or do this: number.is_for_telco(NigerianTelco.GLO) # Returns True if it's a glo number # Telcos covered (as contained in enums.NigerianTelco): AIRTEL GLO MTN MULTI_LINKS NINE_MOBILE NTEL SMILE STARCOMMS ZOOMMOBILE
Enjoy!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file verify-nigerian-number-1.0.1.tar.gz
.
File metadata
- Download URL: verify-nigerian-number-1.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bba3015e1856ac5173de1e1241229e0806336c640d44d134b7a5ecb9335b9285 |
|
MD5 | a9815ff0de15e0d8a462a26d609c425f |
|
BLAKE2b-256 | efb179e76784551f14c85afd854ea3db72388002d0382224272b3c56baf8fbc2 |
File details
Details for the file verify_nigerian_number-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: verify_nigerian_number-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4f3c2d10a1da1ef2bd0f7922c1ad61c6e1972f03a2e0bd689249615b612515b |
|
MD5 | 3a48828f536442ec99424dad26164410 |
|
BLAKE2b-256 | 116298af70c6d5593ced120e72bc24c45e211c2004bb17a19f57673ab848ce33 |