Skip to main content

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 = os.environ["RESEND_API_KEY"]

Example

import os
import resend

resend.api_key = os.environ["RESEND_API_KEY"]

params = {
    "from": "r@email.io",
    "to": ["to@gmail.com"],
    "subject": "hi",
    "html": "<strong>hello, world!</strong>",
    "reply_to": "to@gmail.com",
    "bcc": "to@gmail.com",
    "cc": ["to@gmail.com"],
    "tags": [
        {"name": "tag1", "value": "tagvalue1"},
        {"name": "tag2", "value": "tagvalue2"},
    ],
}

r = resend.Emails.send(

)
print(r)

Metadata

Release files for resend 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for resend 0.3.0
File Size Uploaded Provenance Actions
resend-0.3.0.tar.gz 4.6 kB Without provenance Details for resend-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for resend 0.3.0
File Interpreter ABI Platform Actions
resend-0.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for resend-0.3.0-py2.py3-none-any.whl

Total release size: 11.8 kB

Release files / resend-0.3.0.tar.gz

Download URL resend-0.3.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
215b20f248608593a6a26e935cd6774dda87e3b5fe4fd311f25559b93d453d19
BLAKE2b-256 checksum
How to use checksums
e8846a678d2b576df838f092c03c2fd41404014f59d7f2db74816cd252ec497b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.5

Release files / resend-0.3.0-py2.py3-none-any.whl

Download URL resend-0.3.0-py2.py3-none-any.whl
Size 7.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
26ca31bfa3c023e6c3181842e6cc7915cdf1717a2837d78d26045d8969e37257
BLAKE2b-256 checksum
How to use checksums
802b1257b6bdbeba6b617e8351d5dbe36e8fa2bbc3ad352e91d9dfb9f49e1903
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.5

Security for resend 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page