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
import os
import resend
resend.api_key = "re_yourkey"
params = {
"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"},
],
}
r = resend.Emails.send(params)
print(r)
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-0.7.1.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for resend-0.7.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c78ddbb4a8185f5309db185809103f5de7ce1018b163028be081bdcd805c7d92 |
|
MD5 | 22abc07128e6286b0ffc6e7cba724173 |
|
BLAKE2b-256 | 3cc36623e1b918a8bafa33e3bd390e23b3df674db07ff905a69f1493d61c4e33 |