A package for nepali mobile number
Project description
Nepali Phone Number
Nepali Phone Number is a Python library for dealing with nepali phone numbers with both nepali and english inputs.
Installation
Use the package manager pip to install nepali-phone-number.
pip install nepali-phone-number
Usage
from nepali_phone_number import NepaliPhoneNumber
phone_number = NepaliPhoneNumber(nepali_number_input='९८४६५११९६२') # for nepali input
phone_number.convert_to_english() # returns "9846511962"
phone_number.is_valid_number() # returns "True" for valid number and "False" for invalid number
phone_number.get_number_detail() # returns number detail eg. {'number': '9846511962', 'network_provider': 'NTC'}
phone_number = NepaliPhoneNumber(english_number_input='9846511962') # for english input
phone_number.convert_to_nepali() # returns "९८४६५११९६२"
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
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
File details
Details for the file nepali-phone-number-0.0.1.tar.gz
.
File metadata
- Download URL: nepali-phone-number-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92a942b2863d56fe612529fbaf94db84c5e7405c8a00333f6b7bf350051cfd13 |
|
MD5 | 7bddb3f165af625aa57c47054f21c300 |
|
BLAKE2b-256 | 12232545862a0a63ec9aa1ba2d98e0d042892bfa9ab1a65e060cf4bc8b1024a9 |