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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mail7-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

mail7-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file mail7-0.1.0.tar.gz.

File metadata

  • Download URL: mail7-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.13

File hashes

Hashes for mail7-0.1.0.tar.gz
Algorithm Hash digest
SHA256 260b135d35832f5c0db4963bb5ec6fa7a54bab1af6f17c33244d2e11e1b31732
MD5 43b668b4d3c868409bff96f6263564a1
BLAKE2b-256 5c221452b58476ba25782ce2b09e36cce88660391578f0ad1b110fba2a478a07

See more details on using hashes here.

File details

Details for the file mail7-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mail7-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.10.13

File hashes

Hashes for mail7-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 106749687008bca0cc1209c6dd033b7482113b4744cf36762641d30a6042a3a8
MD5 d6f4837d71aaa21eea429bcc7b406425
BLAKE2b-256 f453b6f1af0d5ce96d3158171136d99a57c66949911507022b0c3ed688d7f3b5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page