Skip to main content

mail7 (Python)

Official Mail7 email validation client. Zero dependencies (stdlib only).

pip install mail7
from mail7 import Mail7

client = Mail7(api_key="...")   # api_key optional (free anonymous tier without it)

result = client.validate("user@example.com")
print(result["status"])         # "Valid" | "Not Valid" | "Unknown"
print(result["valid"])          # True | False | None (None when Unknown)
print(result["is_disposable"])  # True for throwaway addresses

Honest classification

status is Valid, Not Valid, or Unknown. valid is None when the address could not be verified (catch-all, greylisting, disposable) - so you never wrongly reject a real person. Branch on status; do not treat Unknown as invalid.

API

  • Mail7(api_key=None, base_url="https://mail7.net/api", timeout=20)
  • validate(email) -> dict
  • raises Mail7Error on API/transport errors.

License

MIT

Metadata

Release files for mail7 0.1.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 mail7 0.1.0
File Size Uploaded Provenance
mail7-0.1.0.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mail7 0.1.0
File Interpreter ABI Platform
mail7-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / mail7-0.1.0.tar.gz

Download URL mail7-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
260b135d35832f5c0db4963bb5ec6fa7a54bab1af6f17c33244d2e11e1b31732
BLAKE2b-256 checksum
How to use checksums
5c221452b58476ba25782ce2b09e36cce88660391578f0ad1b110fba2a478a07
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.13

Release files / mail7-0.1.0-py3-none-any.whl

Download URL mail7-0.1.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
106749687008bca0cc1209c6dd033b7482113b4744cf36762641d30a6042a3a8
BLAKE2b-256 checksum
How to use checksums
f453b6f1af0d5ce96d3158171136d99a57c66949911507022b0c3ed688d7f3b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.13

Security for mail7 0.1.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

0.1.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