Official Python SDK for the Resend transactional email API. Active, frequently updated. v2.0 (May 2024) added TypedDict-based type hinting. Module-level api_key pattern is the primary auth method. No class instantiation — all methods are called as class methods on resend.Emails, resend.Contacts, etc.
pip install resendVerified import paths — ran on the pinned version, not inferred.
'from' field must use a verified domain. Use 'onboarding@resend.dev' only for testing. The 'to' field must be a list even for single recipients.
import resend; resend.api_key = 'YOUR_KEY'; resend.Emails.send(params)
'to': ['user@example.com'] # not 'to': 'user@example.com'
Verify your domain at resend.com/domains before sending. Format: 'Name <email@yourdomain.com>'
For multi-key scenarios, serialize key setting + API call, or use separate processes/containers per API key.
It is recommended to use a virtual environment for pip operations (e.g., `python -m venv .venv && source .venv/bin/activate`) and to keep pip updated (`pip install --upgrade pip`).
No dependency data recorded yet.