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:
statusisvalid,invalid,catch_all,unknownordisposable; spam traps and frequent complainers arevalidwith the actionremove(reasonspamtrap/complainer).unknownresults never cost a credit. - Retries:
429and503answers are retried with backoff, honouringRetry-After(max_retries,max_retry_wait). Validations are not retried after a network failure, because they may already have been charged. - Errors:
EmailValidationErrorand subclasses (AuthenticationError,InsufficientCreditsError,RateLimitError, …) withstatus,code,request_idandretry_after. - Bulk:
ev.bulk.create(emails=[...])orev.bulk.create(file=...), thenev.bulk.wait(job_id)andev.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_URLto callhttps://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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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.