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-sdk

Usage

Here's a quickstart guide to using the library:

from e164_python_sdk.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.1.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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: e164-python-sdk-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4c25802f8e4d1caee6dbaeb5983a0652a2c3cc572c0f1733523d471d41352f83
MD5 f7558b84ed610291ce938028d9e01a01
BLAKE2b-256 c8852824cd10a12804ee3b74b46b9e40f447b016d079029eaa8acb7c52b9498c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for e164_python_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f7bf3dab12c9fed1f9c7e98ccb704d49f1dccdd372e108d49beb1c0ecfcbcac8
MD5 792793945c56190b6830bb284248669c
BLAKE2b-256 f9d5cbdf38f6d8f4e57f15e08a8329facea99d349b25700f7bd30a2979d863c5

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