https://github.com/taqsblaze/mobile-validate
Easy and Powerful International Phone Number Validation with Country Detection and Carrier Lookup
https://github.com/taqsblaze/mobile-validate
carrier-lookup phone phone-number validation
Last synced: 6 months ago
JSON representation
Easy and Powerful International Phone Number Validation with Country Detection and Carrier Lookup
- Host: GitHub
- URL: https://github.com/taqsblaze/mobile-validate
- Owner: TaqsBlaze
- License: mit
- Created: 2023-12-08T08:50:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-26T08:47:34.000Z (about 1 year ago)
- Last Synced: 2024-04-26T09:50:40.779Z (about 1 year ago)
- Topics: carrier-lookup, phone, phone-number, validation
- Language: Python
- Homepage: https://pypi.org/project/mobile-validate/#description
- Size: 1.03 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README

Easy and Powerful International Phone Number Validation with Country Detection
============================================================================mobile-validate π±π is a Python package designed to streamline the process of validating international phone numbers and identifying their corresponding countries. It leverages a comprehensive library of country-specific regular expressions to ensure accurate and reliable results.
Key Features π
------------- Extensive Country Coverage: Supports phone number validation for numerous countries, including popular regions and niche markets.
- Simplified Country Identification: Effortlessly identifies the country of origin associated with any valid phone number.
- Ease of Use: Integrates seamlessly with existing Python applications and features an intuitive API for convenient phone number validation and country detection.
- Highly Accurate: Utilizes a rigorously tested set of country-specific regular expressions to guarantee reliable validation results.Supported Countries πΊοΈ
-------------------The module currently supports phone number validation for a wide range of countries, including:
- Africa: Zimbabwe, South Africa, Mozambique, Botswana, Malawi, Zambia, Ghana, Nigeria, Egypt
- Middle East: Israel
- Europe: United Kingdom (London), Netherlands
- Asia: China, Korea
- North America: United States of America
- South America: Argentina, Brazil
- Oceania: Australia09/11/24
--------
## update
added 43 more countries
- consider updating to v1.3.3 ```pip install -U mobile-validate```# Added countries
:: bash
Afghanistan
Bangladesh
Sri Lanka
Pakistan
Kuwait
Qatar
Bahrain
UAE
Saudi Arabia
Oman
Jordan
Lebanon
Cyprus
Malta
Armenia
Georgia
Mongolia
Uzbekistan
Tanzania
Kenya
Uganda
Ethiopia
United States (USA)
United Kingdom (UK)
France
Turkey
Belgium
Sweden
Switzerland
Austria
New Zealand
Denmark
Norway
Finland
Iceland
Portugal
Greece
South Korea
Thailand
Vietnam
Philippines
Chile12/12/23
--------
```18 more countries been added in version v1.2.2```
- consider updating to v1.2.3 ```pip install -U mobile-validate```Applications π€
------------This package offers a versatile solution for various applications, including:
- Contact Management Systems: Ensure accurate and consistent contact information for international customers and partners.
- User Registration Forms: Simplify user registration by providing seamless phone number validation and country detection.
- SMS Marketing Campaigns: Target specific regions and ensure successful delivery of SMS messages.
- Mobile Payment Systems: Implement secure and reliable mobile payment solutions with accurate phone number validation.
- International Business Transactions: Streamline international business communication and transactions with efficient phone number validation.Installation ππ»
------------The package can be easily installed using pip:
:: bash
pip install mobile-validate
Usage π‘
-----mobile-validate offers an intuitive API for phone number validation and country detection:
:: python
from mobile_validate.validator import valid_number
# Example: Valid Zimbabwe Mobile Number
phone_number = "+263771234567"
country = "Zimbabwe"if valid_number(phone_number, country):
print(f"Valid {country} mobile number")
else:
print(f"Not a valid {country} number")Checking Carrier provider for a number πΆ
--------------------------------------:: python
from mobile_validate.validaro import get_provider
phone_number = "+44778392002"
provider = get_provider(phone_number)
print(provider)Country lookup using mobile number
----------------------------------::
from mobile_validate.validator import get_country
number = +2771700917
country = get_country(number)
print(f"Mobile number {number} is from {country}")
Note π
----This package is under active development, and contributions are always welcome.π
Sponsor Mobile-Validate π°
------------------------
- You can support me on this journey by sponsoring via these playforms
- Any Trc10/Trc20 token:TBueWQVP14pHX8n5QBHpmk1YD2WAWc27RE
- Airtm:- Please consider sponsoring as this will highly motivate me to keep adding more cool features