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.6.0.tar.gz
(6.6 kB
view hashes)
Built Distribution
Close
Hashes for resend-0.6.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16692f21779848e76e50ca2f9638baf1fa2bba784a9d1e9e872ef3986feefebc |
|
MD5 | 7e4823d394d33920c17f8b52199532bd |
|
BLAKE2b-256 | 8fd5c7ef79f3bcd783e6a65c9fc080a8e6c64d70688725e0b6527af7acfec028 |