# Resend Python SDK
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
![Build](https://github.com/drish/resend-py/actions/workflows/test.yaml/badge.svg)
[![codecov](https://codecov.io/gh/drish/resend-py/branch/main/graph/badge.svg?token=GGD39PPFM0)](https://codecov.io/gh/drish/resend-py)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![PyPI](https://img.shields.io/pypi/v/resend)](https://pypi.org/project/resend/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/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
```py
import os
import resend
resend.api_key = "re_yourkey"
params = {
"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"},
],
}
r = resend.Emails.send(params)
print(r)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/resendlabs/resend-python",
"name": "resend",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "email,email platform",
"author": "Derich Pacheco",
"author_email": "carlosderich@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3c/44/42b53c594056acd28002b5898ef0f503ebd6cbb577c45837dc539e7f4858/resend-0.8.0.tar.gz",
"platform": null,
"description": "# Resend Python SDK\n\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n![Build](https://github.com/drish/resend-py/actions/workflows/test.yaml/badge.svg)\n[![codecov](https://codecov.io/gh/drish/resend-py/branch/main/graph/badge.svg?token=GGD39PPFM0)](https://codecov.io/gh/drish/resend-py)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n[![PyPI](https://img.shields.io/pypi/v/resend)](https://pypi.org/project/resend/)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/resend)](https://pypi.org/project/resend)\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\n```py\nimport os\nimport resend\n\nresend.api_key = \"re_yourkey\"\n\nparams = {\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\nr = resend.Emails.send(params)\nprint(r)\n```\n",
"bugtrack_url": null,
"license": "",
"summary": "Resend Python SDK",
"version": "0.8.0",
"project_urls": {
"Homepage": "https://github.com/resendlabs/resend-python"
},
"split_keywords": [
"email",
"email platform"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8160b0263aa0edab4b35c13f1bc37de6b034a212ba57f94bb167db32aaecd278",
"md5": "a5c90c59b983b7e7395d4dd7b46fd098",
"sha256": "adc1515dadf4f4fc6b90db55a237f0f37fc56fd74287a986519a8a187fdb661d"
},
"downloads": -1,
"filename": "resend-0.8.0-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "a5c90c59b983b7e7395d4dd7b46fd098",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": ">=3.7",
"size": 8760,
"upload_time": "2024-03-06T02:49:07",
"upload_time_iso_8601": "2024-03-06T02:49:07.732145Z",
"url": "https://files.pythonhosted.org/packages/81/60/b0263aa0edab4b35c13f1bc37de6b034a212ba57f94bb167db32aaecd278/resend-0.8.0-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3c4442b53c594056acd28002b5898ef0f503ebd6cbb577c45837dc539e7f4858",
"md5": "3052d8ae8e48c9e1e9a9f7dab0f57ca2",
"sha256": "94142394701724dbcfcd8f760f675c662a1025013e741dd7cc773ca885526257"
},
"downloads": -1,
"filename": "resend-0.8.0.tar.gz",
"has_sig": false,
"md5_digest": "3052d8ae8e48c9e1e9a9f7dab0f57ca2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 7138,
"upload_time": "2024-03-06T02:49:10",
"upload_time_iso_8601": "2024-03-06T02:49:10.644577Z",
"url": "https://files.pythonhosted.org/packages/3c/44/42b53c594056acd28002b5898ef0f503ebd6cbb577c45837dc539e7f4858/resend-0.8.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-06 02:49:10",
"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"
]
]
}
],
"tox": true,
"lcname": "resend"
}