The Nylas Python SDK provides convenient Python bindings for interacting with the Nylas API platform (v3). It simplifies access to email, calendar, and contacts functionalities, abstracting away direct HTTP requests. Currently at version 6.14.3, the library maintains an active release cadence with frequent updates and bug fixes.
pip install nylasVerified import paths — ran on the pinned version, not inferred.
This quickstart initializes the Nylas Python SDK client using API key authentication and then lists the calendars associated with a given grant ID. Ensure your `NYLAS_API_KEY`, `NYLAS_API_URI`, and `NYLAS_GRANT_ID` are set as environment variables or replaced in the code.
Upgrade your Nylas API integration to v3 and migrate your SDK usage to the v6.x patterns. Ensure your Python environment is 3.8 or newer. Update `APIClient` imports to `Client`. Consult the official v5 to v6 migration guide.
Set `NYLAS_API_URI` to `https://api.us.nylas.com` for US-based applications or `https://api.eu.nylas.com` for EU-based applications. Verify your application's region in the Nylas Dashboard.
Review the necessary OAuth scopes for the API calls you are making in the Nylas documentation. If you add new scopes to your Nylas application configuration, users will need to re-authenticate to issue new grants with the updated permissions.
Upgrade to `nylas` SDK version 6.14.2 or newer to benefit from fixes that ensure JSON is encoded as UTF-8 bytes, preserving special characters.
Verify your `NYLAS_API_KEY` and `NYLAS_GRANT_ID` in the Nylas Dashboard. Ensure `NYLAS_API_URI` matches your Nylas application's region (e.g., `https://api.us.nylas.com`). Implement token refresh logic for expiring access tokens.
Check the Nylas API documentation for the specific endpoint you are calling to identify required scopes. Update your application's scope configuration in the Nylas Dashboard and ensure the user re-authenticates to get a new grant with the updated scopes.
Upgrade your `nylas` SDK to version 6.14.2 or higher, as recent versions include specific fixes for UTF-8 encoding. Ensure your Python environment (e.g., system locale, `PYTHONIOENCODING`) and any external data sources consistently use UTF-8.
Replace calls to `nylas.collections.<resource>` with `nylas.<resource>`. For example, instead of `nylas.collections.calendars`, use `nylas.calendars`. Consult the v5 to v6 migration guide for a full overview of changes.
No dependency data recorded yet.