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.2.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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: e164-python-sdk-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 12394ca069bd2763cfb10f1ca8fcf08c0d540c0cea6b75e013c59151cd70f05d
MD5 e19374d7e673344aad9cc8378af06330
BLAKE2b-256 ad3ec8e1f8a28414dea0d6c4283df38a87e877d8722a86f7499db08b6080e0b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for e164_python_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 05c6d10abae7ef2d144318498c5abe45693aa74c5005d8f024dd45c54e0b4699
MD5 36ab22f5677a916c2c62e1fec9661859
BLAKE2b-256 0e2b6dd618ce3975b986bdc1bb4349b3cf5a0c7eabeca0bb8d3e57471d8cacbd

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