SDKs
Python
Coming soonSend email from Python 3.9+ with a typed, lightweight client.
Source codegithub.com/mail-craft/mailcraft-python
PackageNot on PyPI yet
The Python SDK isn't released yet — this page shows its planned API. You can send from Python today by calling the REST API directly.
Install
terminal
pip install mailcraftSend email
Send from a verified sender on one of your domains.
main.py
from mailcraft import MailCraft
mailcraft = MailCraft(api_key=os.environ["MAILCRAFT_API_KEY"])
mailcraft.emails.send(
from_="[email protected]",
to=["[email protected]"],
subject="Welcome!",
html="<p>Thanks for signing up.</p>",
) Keep your API key in the MAILCRAFT_API_KEY environment variable, never in source control. Create one under Settings → API keys, scoped to just what this app needs.