Resend Python SDK
Project description
Resend Python SDK
Installation
To install Resend Python SDK, simply execute the following command in a terminal:
pip install resend
Setup
First, you need to get an API key, which is available in the Resend Dashboard.
import resend
import os
resend.api_key = "re_yourkey"
Example
You can get an overview about all parameters in the Send Email API reference.
import os
import resend
resend.api_key = "re_yourkey"
params: resend.Emails.SendParams = {
"from": "onboarding@resend.dev",
"to": ["delivered@resend.dev"],
"subject": "hi",
"html": "<strong>hello, world!</strong>",
"reply_to": "to@gmail.com",
"bcc": "bcc@resend.dev",
"cc": ["cc@resend.dev"],
"tags": [
{"name": "tag1", "value": "tagvalue1"},
{"name": "tag2", "value": "tagvalue2"},
],
}
email: resend.Email = resend.Emails.send(params)
print(email)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
resend-2.4.0.tar.gz
(11.7 kB
view hashes)
Built Distribution
resend-2.4.0-py2.py3-none-any.whl
(17.2 kB
view hashes)
Close
Hashes for resend-2.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92b674e4877bca9b65c38bb06b5b29a509f2fa878f147b58872afe380738e448 |
|
MD5 | 5a7bc696265a6eba3bbe38e9e82e88e7 |
|
BLAKE2b-256 | 26d17d06d0aa061d2954843adcf06e119f7dc20aa7139237d6fdf03bd2c986a6 |