**Easy and Powerful International Phone Number Validation with Country Detectio**
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: Australia
## 43 Added countries v1.3.3
* 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
* Chile
**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:
::
pip install mobile-validate
**Usage**
mobile-validate offers an intuitive API for phone number validation and country detection:
::
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 which country a number is from**
::
from mobile_validate.validator import get_country
number = "+31784773900"
country = get_country(number)
print(f"{number} is from {country}")
**Checking Carrier provider**
::
from mobile_validate.validator import get_provider
phone_number = "+44889073398"
provider = get_provider(phone_number)
print(provider)
**Note**
This package is under active development, and contributions are always welcome.
Raw data
{
"_id": null,
"home_page": "https://github.com/taqsblaze/mobile-validate",
"name": "mobile-validate",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Tanaka Chinengundu",
"author_email": "tanakah30@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/44/9b/dcb8b541fa5488639cc96b1e32dbe3e139014be2a489cdb89e700139cc4e/mobile_validate-1.3.3.tar.gz",
"platform": null,
"description": "\n \n**Easy and Powerful International Phone Number Validation with Country Detectio**\n\nmobile-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.\n\n**Key Features**\n\n\n* Extensive Country Coverage: Supports phone number validation for numerous countries, including popular regions and niche markets.\n* Simplified Country Identification: Effortlessly identifies the country of origin associated with any valid phone number.\n* Ease of Use: Integrates seamlessly with existing Python applications and features an intuitive API for convenient phone number validation and country detection.\n* Highly Accurate: Utilizes a rigorously tested set of country-specific regular expressions to guarantee reliable validation results.\n\n**Supported Countries**\n\n\nThe module currently supports phone number validation for a wide range of countries, including:\n\n* Africa: Zimbabwe, South Africa, Mozambique, Botswana, Malawi, Zambia, Ghana, Nigeria, Egypt\n* Middle East: Israel\n* Europe: United Kingdom (London), Netherlands\n* Asia: China, Korea\n* North America: United States of America\n* South America: Argentina, Brazil\n* Oceania: Australia\n\n## 43 Added countries v1.3.3\n* Afghanistan\n* Bangladesh\n* Sri Lanka\n* Pakistan\n* Kuwait\n* Qatar\n* Bahrain\n* UAE\n* Saudi Arabia\n* Oman\n* Jordan\n* Lebanon\n* Cyprus\n* Malta\n* Armenia\n* Georgia\n* Mongolia\n* Uzbekistan\n* Tanzania\n* Kenya\n* Uganda\n* Ethiopia\n* United States (USA)\n* United Kingdom (UK)\n* France\n* Turkey\n* Belgium\n* Sweden\n* Switzerland\n* Austria\n* New Zealand\n* Denmark\n* Norway\n* Finland\n* Iceland\n* Portugal\n* Greece\n* South Korea\n* Thailand\n* Vietnam\n* Philippines\n* Chile\n\n**Applications**\n\n\nThis package offers a versatile solution for various applications, including:\n\n* Contact Management Systems: Ensure accurate and consistent contact information for international customers and partners.\n* User Registration Forms: Simplify user registration by providing seamless phone number validation and country detection.\n* SMS Marketing Campaigns: Target specific regions and ensure successful delivery of SMS messages.\n* Mobile Payment Systems: Implement secure and reliable mobile payment solutions with accurate phone number validation.\n* International Business Transactions: Streamline international business communication and transactions with efficient phone number validation.\n\n**Installation**\n\n\nThe package can be easily installed using pip:\n\n:: \n\n pip install mobile-validate\n\n**Usage**\n\n\nmobile-validate offers an intuitive API for phone number validation and country detection:\n\n:: \n\n from mobile_validate.validator import valid_number\n\n # Example: Valid Zimbabwe Mobile Number\n phone_number = \"+263771234567\"\n country = \"Zimbabwe\"\n\n if valid_number(phone_number, country):\n print(f\"Valid {country} mobile number\")\n else:\n print(f\"Not a valid {country} number\")\n\n**Checking which country a number is from**\n\n::\n\n from mobile_validate.validator import get_country\n\n\n number = \"+31784773900\"\n\n country = get_country(number)\n\n print(f\"{number} is from {country}\")\n\n\n**Checking Carrier provider**\n\n::\n\n from mobile_validate.validator import get_provider\n\n phone_number = \"+44889073398\"\n provider = get_provider(phone_number)\n\n print(provider)\n\n\n\n**Note**\n\n\nThis package is under active development, and contributions are always welcome.\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": null,
"version": "1.3.3",
"project_urls": {
"Homepage": "https://github.com/taqsblaze/mobile-validate"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5a0c0cc4db4d19ae759714fdc113aba64daaa21256f3277380b4a6cbe45c313d",
"md5": "0d76db43e4056e481a5c88135b6a771a",
"sha256": "61cd3d3c23f753aca2f25ede378d37824e53e1ec73f3573e0bf38a4b186fde06"
},
"downloads": -1,
"filename": "mobile_validate-1.3.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0d76db43e4056e481a5c88135b6a771a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6722,
"upload_time": "2024-11-09T10:38:54",
"upload_time_iso_8601": "2024-11-09T10:38:54.321545Z",
"url": "https://files.pythonhosted.org/packages/5a/0c/0cc4db4d19ae759714fdc113aba64daaa21256f3277380b4a6cbe45c313d/mobile_validate-1.3.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "449bdcb8b541fa5488639cc96b1e32dbe3e139014be2a489cdb89e700139cc4e",
"md5": "d1e1c041bce0af3778939a782cda1327",
"sha256": "710db36a013cd507c63758c1ceae2ff3e96ea8782fd3c172203010d4135e553d"
},
"downloads": -1,
"filename": "mobile_validate-1.3.3.tar.gz",
"has_sig": false,
"md5_digest": "d1e1c041bce0af3778939a782cda1327",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6679,
"upload_time": "2024-11-09T10:38:55",
"upload_time_iso_8601": "2024-11-09T10:38:55.785358Z",
"url": "https://files.pythonhosted.org/packages/44/9b/dcb8b541fa5488639cc96b1e32dbe3e139014be2a489cdb89e700139cc4e/mobile_validate-1.3.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-09 10:38:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "taqsblaze",
"github_project": "mobile-validate",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "mobile-validate"
}