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.Email = 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.10.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

resend-2.10.0-py2.py3-none-any.whl (21.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: resend-2.10.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for resend-2.10.0.tar.gz
Algorithm Hash digest
SHA256 f9091f487f0d878095bb7a744549969c624815413b7ac82ba92039e2d0804b75
MD5 efb517710becc777bb4889ac61efe0de
BLAKE2b-256 036c57f032ea10d19bede1f21195301a40722e81fe6563fafbae7e37af77c8d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resend-2.10.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.10

File hashes

Hashes for resend-2.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1d65a36b032522d5eb738e08956ca29cbaa217a270efbe915a071eb72c0d6956
MD5 48271f3ede3e489cfbfc7eb64c27468c
BLAKE2b-256 5c5ead687375e7610050de72ea5c254514c002e18c38d96ffc4afa4c8aa4d924

See more details on using hashes here.

Supported by

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