Skip to content

v5.8.0

Compare
Choose a tag to compare
@mrashed-dev mrashed-dev released this 14 Apr 21:39
· 91 commits to main since this release

This new release of the Nylas Python SDK brings a few changes.

Release Notes

Added

  • Add support for getting the number of queried objects (count view)

Changed

  • Improved usage of read only fields in models (fixes #212)

Fixed

  • Fix Calendar availability functions not using the correct authentication method

Using New Features

Getting the number of queried objects (count view)

from nylas import APIClient
nylas = APIClient(
    CLIENT_ID,
    CLIENT_SECRET,
    ACCESS_TOKEN
)

total_contacts = nylas.contacts.count()

# We also support filtering in conjunction with count
emails_from_support = nylas.messages.where(from_="[email protected]").count()