Skip to content

Conversation

@drish
Copy link
Collaborator

@drish drish commented Jun 16, 2025

Introduces async support using the httpx library.

  • Base extra_requires setup
  • Async requests module setup
  • Api Keys module
  • Audiences module
  • Broadcasts module
  • Contacts module
  • Domains module
  • Emails module
  • Batch Emails module

SDK async version

  1. Users will need to install the async version of the sdk (extra-requries) with: pip install resend[async]

  2. Set the default_http_client:

import resend
# Set up async HTTP client
resend.default_http_client = resend.HTTPXClient()
  1. call the async version method (suffixed with _async):
email: resend.Email = await resend.Emails.send_async(params)

@pedroimpulcetto
Copy link
Contributor

wow, I loved this Async support!!! great job @drish

Base automatically changed from feat/custom-http-client to main July 7, 2025 17:46
@drish drish marked this pull request as ready for review July 18, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants