A simple Python project to check country, carrier, and timezone information for any phone number using the phonenumbers library.
- Validate and format phone numbers
- Detect country, carrier, and time zone
- Save results to
results.txt - Simple CLI interface
-
Clone or download this project folder:
git clone https://github.com/Mamoonkhan11/Phone-Validation__Python cd Phone-Validation__Python -
Create a virtual environment (recommended):
python -m venv .venv source .venv/bin/activate # On Windows use: .venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
python main.pyExample:
📞 Phone Info Checker
Type 'exit' to quit
Type phone number with country code: +14155552671
✅ Lookup successful:
Formatted: +14155552671
Country_code: 1
National_number: 4155552671
Region: California
Carrier: AT&T Wireless
a
Result saved to results.txt
phoneinfo/
├── src/
│ ├── __init__.py
│ ├── phone_info.py
│ ├── utils.py
│
├── tests/
│ └── test_phone_info.py # Optional
│
├── requirements.txt
├── README.md
└── main.py
This project is released under the MIT License — feel free to modify and use it.