Skip to main content

Mighty Temp Mail — Python SDK

pip install mighty-temp-mail

Quickstart

from mighty_temp_mail import MightyMail
mail = MightyMail("mk_live_your_key_here")
inbox = mail.inboxes.create()
print("Send email to:", inbox.address)
message = inbox.wait_for_message(timeout=30)
print("OTP:", message.otp)

Error handling

from mighty_temp_mail import (
    MightyMail, AuthError, ScopeError, RateLimitError,
    InsufficientBalanceError, NotFoundError,
)
try:
    inbox = mail.inboxes.create()
except InsufficientBalanceError as e:
    print("Need", e.required_cents, "have", e.balance_cents)
except ScopeError as e:
    print("Missing scope:", e.data.get("required_scope"))

License

MIT

Metadata

Release files for mighty-temp-mail 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 mighty-temp-mail 0.1.0
File Size Uploaded
mighty_temp_mail-0.1.0.tar.gz 4.3 kB Details

Built distribution (wheel)

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

Total release size: 9.1 kB

Release files / mighty_temp_mail-0.1.0.tar.gz

Download URL mighty_temp_mail-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
333098ffedcfbf4852fa8346867641e89b0d3d13f53265dc318eb502709cb538
BLAKE2b-256 checksum
How to use checksums
b953b30c3c92ac90e7db8fda61e150b0e5d5073456cfde9f7da8780b051d5ab1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

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

Download URL mighty_temp_mail-0.1.0-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27e04153141a1b90593ce89a43d762d7e3700b15baa6ebe357311433d0ff9b7c
BLAKE2b-256 checksum
How to use checksums
82776e1b91a843b6f1763a657bd3337ea95cac7aa7da2b3caa5d2b39c60e3805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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