A Python SDK package for accessing the e164.com phone number validation API.
Project description
E164 Python SDK
A Python library for handling E.164 formatted phone numbers. This library allows you to validate and retrieve metadata about phone numbers using the e164.com API.
Installation
pip install e164-python-sdk
Usage
Here's a quickstart guide to using the library:
#!/usr/bin/env python3
from e164_python_sdk import E164
def main():
try:
e164_instance = E164()
response = e164_instance.lookup("441133910781")
print(f"{response.prefix}")
print(f"{response.calling_code}")
print(f"{response.iso3}")
print(f"{response.tadig}")
print(f"{response.mccmnc}")
print(f"{response.type}")
print(f"{response.location}")
print(f"{response.operator_brand}")
print(f"{response.operator_company}")
print(f"{response.total_length_min}")
print(f"{response.total_length_max}")
print(f"{response.weight}")
print(f"{response.source}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
main()
Features
- Validate E.164 formatted phone numbers.
- Retrieve metadata such as country code, operator, and phone number type.
- Easy-to-use Python interface.
For more details, refer to the documentation or explore the source code.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file e164-python-sdk-0.1.3.tar.gz.
File metadata
- Download URL: e164-python-sdk-0.1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e53362aa9c383378d82e2c694639bad50f64934c2c5673e7c7844514e1a3a80a
|
|
| MD5 |
ef5b06cfc49f1894bd36409df99beb73
|
|
| BLAKE2b-256 |
283527bde96172de8ddcd9861885e70876782d196d8664487577b4488c8e718c
|
File details
Details for the file e164_python_sdk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: e164_python_sdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
230ab53bbf19086fb99f367d53e050a145ba32a6ed8bd4969c5ade6aa5df9eab
|
|
| MD5 |
d44914119d9d39f58c269845edcec735
|
|
| BLAKE2b-256 |
015d76d42afda23b9cb34a7370554d40a1d8a9ff0c6a1cef7dc1acacd67cb156
|