SimpleGmail is a Python library providing a simple API client for Gmail, allowing users to send, read, delete, and manage emails and labels via the Gmail API. The latest version is 4.1.1 (released 2025-11-07). The library follows an irregular release cadence.
pip install simplegmailNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quickstart: Initialize Gmail (triggers OAuth if needed) and list inbox messages.
Change `construct_query(labels='finance', exclude_labels=True)` to `construct_query(exclude_labels='finance')`
Use 'creds' (credentials.json path) and 'token' (pickle file path) arguments when constructing Gmail.
Upgrade to >=4.0.2 or avoid signature when using formatted sender string.
Upgrade to >=4.0.4 or manually refresh token using `gmail.service.users().messages().list(...)` call after re-authentication.
Upgrade to v4.1.1 or call `gc.collect()` after large batch operations.
Upgrade to >=4.0.4 or delete token.pickle and re-authenticate via Gmail() constructor.
Use `creds='path/to/credentials.json'` instead of `creds_file='path'`.
Change to `construct_query(exclude_labels='finance')`.
Upgrade to >=4.0.1 or access individual headers via `msg.sender`, `msg.subject` etc.