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-1.2.0.tar.gz
(11.6 kB
view hashes)
Built Distribution
resend-1.2.0-py2.py3-none-any.whl
(18.0 kB
view hashes)
Close
Hashes for resend-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaeaf5ba0f25df98220fc4f8346182f214078c26705ca3d24b183b7627d1abd2 |
|
MD5 | 21eb9ed85351316f4262eac109293882 |
|
BLAKE2b-256 | c051eb7b66b38b2e2931cb015b87317c8112e8f2ef6117b795c6e31c96c7a256 |