Skip to main content

Resend Python SDK

Project description

Resend Python SDK

Code style: black Build codecov License: MIT PyPI PyPI - Python Version


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.Emails.SendResponse = resend.Emails.send(params)
print(email)

Project details


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.24.0.tar.gz (31.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resend-2.24.0-py2.py3-none-any.whl (51.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file resend-2.24.0.tar.gz.

File metadata

  • Download URL: resend-2.24.0.tar.gz
  • Upload date:
  • Size: 31.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for resend-2.24.0.tar.gz
Algorithm Hash digest
SHA256 60c15e2c9007bd8bdb811f752f00298606a7264242d3a4c4e0ae14a493ec3e0e
MD5 fa990640d9b425442cf1b52f2b39ca61
BLAKE2b-256 a317a552eba700a42dbbd5d11cbde0cc4a950c26e1eb7074c516153f8d3f0843

See more details on using hashes here.

File details

Details for the file resend-2.24.0-py2.py3-none-any.whl.

File metadata

  • Download URL: resend-2.24.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 51.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for resend-2.24.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f8d99718d3a23ab96b7d3df020ee7a9b56b7f536e0d77b50a16debd198b50e79
MD5 0e01390297e9595e2815802062840780
BLAKE2b-256 c4c213796ebb95b0d0990361c302fc4231c98184b6c489687cd27baaf3fcbc4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page