Sendbound
Integration·Python

Send email from Python

The Sendbound Python SDK supports sync and async usage, works with Django, FastAPI, and Flask, and gives you full type hints throughout.

pip install sendbound

Synchronous

from sendbound import Sendbound

sb = Sendbound(api_key=os.environ["SB_KEY"])

# Send a transactional email
response = sb.emails.send(
    from_="noreply@yourapp.com",
    to="user@example.com",
    subject="Your password reset link",
    html="<p>Click <a href='...'>here</a> to reset your password.</p>",
)

print(response.id)  # em_01j...

Async (asyncio / FastAPI)

import asyncio
from sendbound import AsyncSendbound

sb = AsyncSendbound(api_key=os.environ["SB_KEY"])

async def send_welcome(email: str, name: str):
    await sb.emails.send(
        from_="hello@yourapp.com",
        to=email,
        subject=f"Welcome, {name}!",
        html=f"<h1>Hello {name}</h1>",
    )
Sync and async (asyncio) clients
Django, FastAPI, Flask compatible
Full type hints and mypy support
Pydantic models for all responses
Automatic retries with backoff
Idempotency key support
Sub-30ms p50 send latency
Webhook signature verification