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

Uploaded Source

Built Distribution

resend-2.4.0-py2.py3-none-any.whl (17.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for resend-2.4.0.tar.gz
Algorithm Hash digest
SHA256 0f2b06c9afdc5c71f2d2f828dcd6680077b0ef3a3d7420ec37d150857b67a095
MD5 0d3649c125c2a885840ff90ae6daadbf
BLAKE2b-256 e6506ed3bd29137c03f97e71cf0f35796a138ff22b9a2e7e2385c7883fbe0673

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for resend-2.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 92b674e4877bca9b65c38bb06b5b29a509f2fa878f147b58872afe380738e448
MD5 5a7bc696265a6eba3bbe38e9e82e88e7
BLAKE2b-256 26d17d06d0aa061d2954843adcf06e119f7dc20aa7139237d6fdf03bd2c986a6

See more details on using hashes here.

Supported by

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