# Resend Python SDK
[](https://github.com/psf/black)

[](https://codecov.io/gh/drish/resend-py)
[](https://opensource.org/licenses/MIT)
[](https://pypi.org/project/resend/)
[](https://pypi.org/project/resend)
---
## 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](https://resend.com).
```py
import resend
import os
resend.api_key = "re_yourkey"
```
## Example
You can get an overview about all parameters in the [Send Email](https://resend.com/docs/api-reference/emails/send-email) API reference.
```py
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)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/resendlabs/resend-python",
"name": "resend",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "email, email platform",
"author": "Derich Pacheco",
"author_email": "carlosderich@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f0/f1/a68c35b2734d57b57ca9938ea2471894b6a04a79f21df0548b783df0b380/resend-2.13.0.tar.gz",
"platform": null,
"description": "# Resend Python SDK\n\n[](https://github.com/psf/black)\n\n[](https://codecov.io/gh/drish/resend-py)\n[](https://opensource.org/licenses/MIT)\n[](https://pypi.org/project/resend/)\n[](https://pypi.org/project/resend)\n\n---\n\n## Installation\n\nTo install Resend Python SDK, simply execute the following command in a terminal:\n\n```\npip install resend\n```\n\n## Setup\n\nFirst, you need to get an API key, which is available in the [Resend Dashboard](https://resend.com).\n\n```py\nimport resend\nimport os\n\nresend.api_key = \"re_yourkey\"\n```\n\n## Example\n\nYou can get an overview about all parameters in the [Send Email](https://resend.com/docs/api-reference/emails/send-email) API reference.\n\n```py\nimport os\nimport resend\n\nresend.api_key = \"re_yourkey\"\n\nparams: resend.Emails.SendParams = {\n \"from\": \"onboarding@resend.dev\",\n \"to\": [\"delivered@resend.dev\"],\n \"subject\": \"hi\",\n \"html\": \"<strong>hello, world!</strong>\",\n \"reply_to\": \"to@gmail.com\",\n \"bcc\": \"bcc@resend.dev\",\n \"cc\": [\"cc@resend.dev\"],\n \"tags\": [\n {\"name\": \"tag1\", \"value\": \"tagvalue1\"},\n {\"name\": \"tag2\", \"value\": \"tagvalue2\"},\n ],\n}\n\nemail: resend.Email = resend.Emails.send(params)\nprint(email)\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Resend Python SDK",
"version": "2.13.0",
"project_urls": {
"Homepage": "https://github.com/resendlabs/resend-python"
},
"split_keywords": [
"email",
" email platform"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ce711e287dbaf903df39ae0de71a18c8c0b5f256d80869cffe8e62f2faa62f4f",
"md5": "85ea4fda640fafe2832c8ae17f2379a3",
"sha256": "949f827182996069229978debb295caea306e26a4e2041361a128eda450403d3"
},
"downloads": -1,
"filename": "resend-2.13.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "85ea4fda640fafe2832c8ae17f2379a3",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 22478,
"upload_time": "2025-08-13T00:48:13",
"upload_time_iso_8601": "2025-08-13T00:48:13.860340Z",
"url": "https://files.pythonhosted.org/packages/ce/71/1e287dbaf903df39ae0de71a18c8c0b5f256d80869cffe8e62f2faa62f4f/resend-2.13.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f0f1a68c35b2734d57b57ca9938ea2471894b6a04a79f21df0548b783df0b380",
"md5": "9d9b61c3aa441703de25a4ac885650db",
"sha256": "a0b006d5093ba92c379e4501aeb9780f25050254e362dcc5b7a65e5f8dab2e5d"
},
"downloads": -1,
"filename": "resend-2.13.0.tar.gz",
"has_sig": false,
"md5_digest": "9d9b61c3aa441703de25a4ac885650db",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 15220,
"upload_time": "2025-08-13T00:48:15",
"upload_time_iso_8601": "2025-08-13T00:48:15.339317Z",
"url": "https://files.pythonhosted.org/packages/f0/f1/a68c35b2734d57b57ca9938ea2471894b6a04a79f21df0548b783df0b380/resend-2.13.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-13 00:48:15",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "resendlabs",
"github_project": "resend-python",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "requests",
"specs": [
[
">=",
"2.31.0"
]
]
},
{
"name": "typing_extensions",
"specs": [
[
">=",
"4.4.0"
]
]
}
],
"tox": true,
"lcname": "resend"
}