Python SDK

Shape follows resend-python: pigeon.Emails.send({...}).

github.com/pigeonfs/pigeon-python

Install

shell
pip install git+https://github.com/pigeonfs/pigeon-python.git

Send an email

Python
import pigeon

pigeon.api_key = "pg_your_key"

email = pigeon.Emails.send({
    "from": "Ada <ada@yourdomain.com>",
    "to": ["person@example.com"],
    "subject": "Hello",
    "html": "<strong>hello, world!</strong>",
})
print(email["id"])
All SDK libraries API reference

© 2026 Pigeon. Email on your Amazon SES account.