Resend Python SDK

Official Python SDK for sending transactional email with the Resend API

SDK
PyPI
v2.48.0
131 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
84 /100 Excellent
Development Activity 96
Maintenance 100
Community 68
Maturity 52
Momentum 20

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
73 /100 Good
Architecture 74
Code Quality 76
Innovation 58
Learning Curve 85

The Resend Python SDK is the official client library for Resend’s transactional email API, letting Python applications send emails, manage audiences/contacts, configure domains, and handle webhooks and broadcasts through a single typed client. It supports both synchronous and async (httpx-based) HTTP clients, so it fits equally into traditional Python scripts and asyncio-based web services.

Modeled closely on the underlying REST API, the SDK exposes resources like resend.Emails, resend.Domains, resend.Audiences, and resend.Webhooks as simple, discoverable modules, making it straightforward to integrate Resend’s email delivery platform into any Python codebase.

What You Get

  • A simple resend.Emails.send(...) call for sending transactional or batch emails
  • Resource modules for domains, audiences, contacts, broadcasts, templates, and API keys
  • Both synchronous (requests) and async (httpx) HTTP client support via an install extra
  • Webhook and event resource helpers for handling delivery/bounce/open events
  • Typed responses and exceptions (py.typed) for editor autocomplete and static analysis

Common Use Cases

  • Sending transactional emails (password resets, receipts, notifications) from a Python backend
  • Managing marketing email audiences and contact lists programmatically
  • Verifying and configuring sending domains for deliverability from application code
  • Processing Resend webhook events (delivered, bounced, opened) in a Python web service
  • Sending templated broadcast emails to segments of subscribers

Under The Hood

Architecture - The SDK’s resend/ package exposes one submodule per API resource (emails, domains, audiences, contacts, broadcasts, webhooks, api_keys, etc.), each built on a shared _base_response.py/request.py layer that handles auth, serialization, and error mapping, with http_client.py, http_client_requests.py, and http_client_async.py providing swappable sync/async transport implementations. Tech Stack - The SDK depends only on requests for its default sync client plus typing_extensions, with httpx pulled in only via the optional async extra, keeping the base install lightweight; it ships py.typed for full type-checker support. Code Quality - Roughly 49 test files exercise each resource module plus both HTTP client implementations, with mypy configured (mypy.ini) for static type checking and a Dockerized dev environment (docker-compose.yaml) for consistent CI runs. API Design - Setting resend.api_key once and calling resend.Emails.send({...}) mirrors the shape of Resend’s own REST API almost one-to-one, so anyone who has read the Resend API docs can use the SDK immediately, though the mix of resource modules named as both classes and submodules (resend.Emails vs resend.emails) requires a moment to get used to.

Used by 6 apps in this directory

Python
44%
MIT

/dev/push

Developer Tools · Devops

4,757

Self-hosted, open-source Vercel alternative that deploys Python, Node.js, PHP, and any Docker-compatible app from a Git push, with zero-downtime rollouts and real-time logs.

View details
44
Repo Health
68
Technical
73
Dependency
Built with
Python 44%
HTML 31%
CSS 17%
Updated 7 months ago
TypeScript
50%
Other

Dify

AI Development · Design Tools · Developer Tools

157,364

Visual LLM workflow platform with RAG pipelines, agent capabilities, and model management for building production AI applications.

View details
92
Repo Health
85
Technical
66
Dependency
Built with
TypeScript 50%
Python 47%
Updated 4 days ago
Python
51%
AGPL 3.0

Khoj

AI Assistants · Knowledge Management · Productivity

37,526

A self-hostable AI second brain that chats with your documents, searches the web, builds custom agents, and runs entirely on your own LLM.

View details
63
Repo Health
82
Technical
66
Dependency
Built with
Python 51%
TypeScript 36%
Updated 2 months ago
Python
51%
AGPL 3.0

LearnHouse

CMS · Learning Management

2,301

Open-source LMS with AI tutoring, real-time collaboration boards, live code execution, and built-in course monetization — self-hosted in minutes.

View details
90
Repo Health
77
Technical
66
Dependency
Built with
Python 51%
TypeScript 48%
Updated 5 days ago
Python
82%
MIT

LiteLLM

AI Development · Developer Tools

59,745

Open source AI gateway and Python SDK that gives you one OpenAI-compatible interface to call 100+ LLM providers, with built-in routing, cost tracking, guardrails, and virtual keys.

View details
92
Repo Health
81
Technical
69
Dependency
Built with
Python 82%
TypeScript 12%
Updated 4 days ago
TypeScript
95%
Other

OpenHands

AI Code Assistants · AI Development

89,328

The self-hosted developer control center for running AI coding agents — locally, in Docker, on VMs, or across cloud backends — with automation workflows for GitHub, Slack, and more.

View details
91
Repo Health
82
Technical
67
Dependency
Built with
TypeScript 95%
Updated 5 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers