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
@ojh
Copy link

ojh commented Nov 19, 2025

@bukinoshita @felipevolpone Is there any update on this? Are there any outstanding tasks that any of us could potentially help with to get this PR unblocked and merged?

@drish
Copy link
Collaborator Author

drish commented Nov 21, 2025

@bukinoshita @felipevolpone Is there any update on this? Are there any outstanding tasks that any of us could potentially help with to get this PR unblocked and merged?

@ojh i had to re-prioritize some work and this ended up having to wait a bit. I'll be working on this back again this coming week, should be very close to wrap up.

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.

4 participants