Skip to main content

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

Usage

Here's a quickstart guide to using the library:

from e164_python.e164 import E164

# Initialize the E164 client
client = E164()

# Lookup a phone number
try:
    response = client.lookup("+441133910781")
    print(response.to_dict())  # Print the response as a dictionary
except ValueError as e:
    print(f"Error: {e}")

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

e164-python-sdk-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

e164_python_sdk-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file e164-python-sdk-0.1.0.tar.gz.

File metadata

  • Download URL: e164-python-sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for e164-python-sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 465b957926be40799e75289eb7119eacaf7ed940054ac5becd3d54bf90ce59d4
MD5 d45c971df81005642a36e2c164ebf6d0
BLAKE2b-256 96908aed82c4ad6c5ad6168f381bc59dc345dafb26a5181539407407df623fbc

See more details on using hashes here.

File details

Details for the file e164_python_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for e164_python_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21f25aa771d269b6caa507b9044a0f8a1c3777256787ef5a135c75c0be98494a
MD5 d44db65c73f773f6c1dd4f52b2c1a011
BLAKE2b-256 d3d795faab6e7dfbc7bfb635617711b8308e1c8c6e7f858acf4e76cffa903b87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page