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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for addrly-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a44460cff485afdd962e9837453beb955ab927f4cb4bd76dcd0a9d937c9723bb
MD5 54701610ae06edfd7690dfcdd7746767
BLAKE2b-256 140cc4bc1297e590d1dc4b0fdbaca248d66cc005183f2960ac6828c7033116e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: addrly-1.0.0-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.13.1

File hashes

Hashes for addrly-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ad738a6b3346bb54cc2a5fe21297b58985b251a07762cdcf1989859ce454372
MD5 4f83d4cac41f44d885bc20103c63d5bd
BLAKE2b-256 cc91f8c8aed2d4f4bb8d35ec18c620b035b7cf7e9b0239da48e0b3b99a4af1f1

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