small package to check if input number is valid iranian cell phone number and its additional information
Project description
light weight package to verify and get information about Iranian cell phone number
this is a package for checking if input number is a valid iran cell phone number or not it can give you additional information about its operator and some other useful information like prepaid and postpaid
for now it consist of 3 main method for :
- verify if input number is real cell phone number
- determine just operator of cell phone number (if its a wrong phone number returns None)
- retun type of cell phone based on prepaid or postpaid and its operator
install by pip:
pip install iran-mobiles
how to use :
first import module as :
from iran_mobile_va import mobile
then for validation of a phone number use this method:
mobile.is_valid(tel_number)
if its valid ,the method returns True
otherwise returns False
.
for determine just operator of cell phone use this:
mobile.tel_operator(tel_number)
it returns respective operator but if number is not valid it returns None
for determine operator and postpaid or prepaid of phone number use this:
mobile.tel_information(tel_number)
it returns a dictionary that has element of validation and operator of number like {'validation':'something','operator':'something'}
but if number is not valid it return {'validation' = 'False' , 'operator' = 'None'}
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 iran_mobiles-0.0.2.tar.gz
.
File metadata
- Download URL: iran_mobiles-0.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f43831ef49171dc5b0eddef4b657a86fa396680baa57f3ce86e8d9851a3e1c8c |
|
MD5 | bf1a173a65c48e4e128a76c8da44cb06 |
|
BLAKE2b-256 | 3e97d146413caa2b5a7345f87de2e4711967238cf639b2e45a214b408f7d573e |
File details
Details for the file iran_mobiles-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: iran_mobiles-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97a817003ed227a140c906e3dfc581aaf2e251de518912bb39a02fd0f9104560 |
|
MD5 | 354cf0919ea7878d7120b30663a3b74a |
|
BLAKE2b-256 | 9ee49e4fa8f2b4d5a703ac52647d9696fe880ef90b5a755ad5b597786c77d12b |