Skip to main content

email-validation.org Python SDK

Official Python client for the email-validation.org API: validate single addresses, read credits and usage, run bulk jobs and verify webhook signatures. Synchronous and asynchronous clients, typed results (TypedDict) and typed errors. Python 3.10+.

pip install email-validation-sdk
import os

from email_validation import EmailValidation

with EmailValidation(os.environ["EV_API_KEY"]) as ev:
    result = ev.validate("accepted@sandbox.email-validation.org")  # free test address
    print(result["status"], result["reason"], result["action"])

Async: AsyncEmailValidation has the same methods (await ev.validate(...)).

  • Results: status is valid, invalid, catch_all, unknown or disposable; spam traps and frequent complainers are valid with the action remove (reason spamtrap / complainer). unknown results never cost a credit.
  • Retries: 429 and 503 answers are retried with backoff, honouring Retry-After (max_retries, max_retry_wait). Validations are not retried after a network failure, because they may already have been charged.
  • Errors: EmailValidationError and subclasses (AuthenticationError, InsufficientCreditsError, RateLimitError, …) with status, code, request_id and retry_after.
  • Bulk: ev.bulk.create(emails=[...]) or ev.bulk.create(file=...), then ev.bulk.wait(job_id) and ev.bulk.results(job_id, filter=["valid"]).
  • Webhooks: verify_webhook(raw_body, headers, secret) checks Standard Webhooks signatures.
  • EU data residency: pass base_url=EU_BASE_URL to call https://api-eu.email-validation.org, where checks are validated and stored in the EU (https://email-validation.org/docs/eu-data-residency/).

Documentation: https://email-validation.org/docs/sdks/python/

Tests

From the unpacked source distribution:

python3 -m unittest discover -s tests -t .   # stdlib only; httpx-specific tests are skipped without httpx
# or, with dev dependencies installed (pip install -e ".[test]"):
pytest

Metadata

Release files for email-validation-sdk 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for email-validation-sdk 1.0.0
File Size Uploaded Provenance Actions
email_validation_sdk-1.0.0.tar.gz 20.5 kB Without provenance Details for email_validation_sdk-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for email-validation-sdk 1.0.0
File Interpreter ABI Platform Actions
email_validation_sdk-1.0.0-py3-none-any.whl Python 3 none any Details for email_validation_sdk-1.0.0-py3-none-any.whl

Total release size: 40.1 kB

Release files / email_validation_sdk-1.0.0.tar.gz

Download URL email_validation_sdk-1.0.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5d37c4b4b046e57a94df01d7e72c65e1a548ed604711aceef752fc08d2966d0c
BLAKE2b-256 checksum
How to use checksums
3e994995f43bb8826022fcb718cb11e5b30bb3f8cb5463214aa40478c4b4ed12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / email_validation_sdk-1.0.0-py3-none-any.whl

Download URL email_validation_sdk-1.0.0-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a08a3d47f7e9d5b1e6037c221b9f243842f8a71c148835426e88012999feb09a
BLAKE2b-256 checksum
How to use checksums
f032929f555b5355035f22077e6888b08d93eb22f0594952b48d31f42d2ca512
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for email-validation-sdk 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page