Python SDK 2.0

See what changed in the new major version of the Resend Python SDK.

Derich PachecoDerich Pacheco

A year ago, we announced the first version of the Resend Python SDK, and since then, we have been working on improving it.

Today, we are excited to announce the release of a new major version with some changes that will make it easier for developers to integrate email into their Python apps.

Support for type hinting

Now users can use type hinting to specify types of their input parameters and get static type checking on their code base, for example:

params: resend.Emails.SendParams = {
"from": "onboarding@resend.dev",
"to": ["delivered@resend.dev"],
"subject": "hello world",
"html": "<strong>it works!</strong>",
}
email = resend.Emails.send(params)

You should also be able to get auto-completion support from your favorite IDE.

Attributes Autocomplete
Attributes Autocomplete

Inline Documentation
Inline Documentation

Function Arguments/Returns
Function Arguments/Returns

What's next?

We want to keep improving the SDK and make it easier for developers to integrate email into their Python apps.

Check the new example showing how to use Resend with FastAPI.

If you have any feedback or ideas, please let us know by opening an issue on GitHub.