nylas / nylas/nylas-python

Create an async version of the client

Open
#412 1 comment 5 reactions 1 assignee View on GitHub

@AaronDDM is already working on this.

Since Jun 11, 2025.

enhancement
Dominant language
Python
Stars
109
Forks
85
Avg merge
1d 21h
Merged PRs (30d)
1

Description

Description

We need to add asynchronous support to the Nylas client to improve performance in high-concurrency applications. The current synchronous implementation blocks the event loop during HTTP requests, which limits scalability in async applications.

Benefits

  • Improved performance for concurrent operations
  • Compatibility with async web frameworks (FastAPI, Starlette, etc.)
  • Better resource utilization when processing multiple emails
  • Reduced latency for user-facing applications that process email data

Implementation Suggestion

Extend the current HttpClient with an async version that uses aiohttp while maintaining the same interface.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.