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.
Metadata
Release files for mobile-validate 1.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mobile_validate-1.3.3.tar.gz | 6.7 kB | Without provenance | Details for mobile_validate-1.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mobile_validate-1.3.3-py3-none-any.whl | Python 3 | none | any | Details for mobile_validate-1.3.3-py3-none-any.whl |
Total release size: 13.4 kB
Release files / mobile_validate-1.3.3.tar.gz
| Download URL | mobile_validate-1.3.3.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
710db36a013cd507c63758c1ceae2ff3e96ea8782fd3c172203010d4135e553d
|
|
BLAKE2b-256 checksum How to use checksums |
449bdcb8b541fa5488639cc96b1e32dbe3e139014be2a489cdb89e700139cc4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / mobile_validate-1.3.3-py3-none-any.whl
| Download URL | mobile_validate-1.3.3-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61cd3d3c23f753aca2f25ede378d37824e53e1ec73f3573e0bf38a4b186fde06
|
|
BLAKE2b-256 checksum How to use checksums |
5a0c0cc4db4d19ae759714fdc113aba64daaa21256f3277380b4a6cbe45c313d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for mobile-validate 1.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.