Skip to main content

Official Python SDK for the Addrly email validation API

Project description

addrly

Official Python SDK for the Addrly email validation API.

Install

pip install addrly

Quick Start

from addrly import Addrly

client = Addrly("sk_your_api_key")

# Validate an email
result = client.validate_email("user@example.com")
print(result["mx"], result["disposable"], result["domain_age_in_days"])

# Validate a domain
domain = client.validate_domain("example.com")

# Auto-detect (email or domain)
auto = client.validate("test@gmail.com")

Bulk Validation

# Bulk email validation (Pro: 500, Ultra: 1000)
bulk = client.bulk_validate_emails([
    "user1@gmail.com",
    "user2@yahoo.com",
    "spam@tempmail.com",
])
print(bulk["summary"])  # {"total": 3, "valid": 2, ...}

# Bulk domain validation
domains = client.bulk_validate_domains(["gmail.com", "tempmail.com"])

Gates

# Evaluate an email against a gate
decision = client.gate("gate_abc123def456", email="user@tempmail.com")
print(decision["decision"]["action"])  # "block"

Error Handling

from addrly import Addrly, AddrlyError

try:
    result = client.validate_email("test@example.com")
except AddrlyError as e:
    print(e.status)    # 429
    print(e.error)     # "Rate limit exceeded"
    print(e.response)  # full API error response

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

addrly-1.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

addrly-1.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file addrly-1.0.1.tar.gz.

File metadata

  • Download URL: addrly-1.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for addrly-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1ee023701c2f623cf20fdc2fe6950ed99a980a2b38f2bbdc12b2b4e732314a91
MD5 f7bcb790b1ef6085af404b8b89e2e061
BLAKE2b-256 b4761e27a91f7d8160739fb003725131101523507b740213a0a2a0dfae8aadd6

See more details on using hashes here.

File details

Details for the file addrly-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: addrly-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for addrly-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0b1bd7d295b4ea31489035af00f14535432f09013e97dbb53b1d1f7342f61d6b
MD5 c665818d66de299169c51d7c5fc4e898
BLAKE2b-256 a11c6fec03baab6b31547b76185ba8cc6362b91c28951d08eac8e45cd747a63e

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