{"id":20458753,"url":"https://github.com/resend/resend-python","last_synced_at":"2026-04-11T05:12:40.078Z","repository":{"id":64470827,"uuid":"575079526","full_name":"resend/resend-python","owner":"resend","description":"resend's python sdk","archived":false,"fork":false,"pushed_at":"2025-03-25T03:04:11.000Z","size":183,"stargazers_count":78,"open_issues_count":11,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T00:33:11.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/resend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-12-06T17:58:04.000Z","updated_at":"2025-04-04T04:37:56.000Z","dependencies_parsed_at":"2023-12-22T01:03:07.738Z","dependency_job_id":"19d06688-e825-43c5-88a1-06efd6159e7b","html_url":"https://github.com/resend/resend-python","commit_stats":null,"previous_names":["drish/klotty-py","resend/resend-python","resendlabs/resend-python"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resend%2Fresend-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resend%2Fresend-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resend%2Fresend-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/resend%2Fresend-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/resend","download_url":"https://codeload.github.com/resend/resend-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T12:13:44.052Z","updated_at":"2026-04-02T22:05:52.983Z","avatar_url":"https://github.com/resend.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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/ci.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\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\": \"\u003cstrong\u003ehello, world!\u003c/strong\u003e\",\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.Emails.SendResponse = resend.Emails.send(params)\nprint(email)\n```\n\n## Async Support\n\nThe SDK supports async operations via `httpx`. Install the async extra:\n\n```bash\npip install resend[async]\n```\n\nOnce installed, async methods (suffixed with `_async`) work automatically — no extra setup needed:\n\n```py\nimport asyncio\nimport resend\n\nresend.api_key = \"re_yourkey\"\n\nasync def main():\n    params: resend.Emails.SendParams = {\n        \"from\": \"onboarding@resend.dev\",\n        \"to\": [\"delivered@resend.dev\"],\n        \"subject\": \"hi\",\n        \"html\": \"\u003cstrong\u003ehello, world!\u003c/strong\u003e\",\n    }\n\n    email: resend.Emails.SendResponse = await resend.Emails.send_async(params)\n    print(email)\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n### Custom async client\n\nTo use a custom async HTTP client or configure options like timeouts, set `resend.default_async_http_client`:\n\n```py\nimport resend\n\nresend.api_key = \"re_yourkey\"\nresend.default_async_http_client = resend.HTTPXClient(timeout=60)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresend%2Fresend-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fresend%2Fresend-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fresend%2Fresend-python/lists"}