simplegmail
A simple Python API client for Gmail.
Decision gist · record as of 2026-08-14
Yes, if you need a straightforward Gmail API wrapper and are comfortable with dormant maintenance. The package is stable, has no known vulnerabilities, and low install friction. However, be aware that oauth2client is deprecated by Google; if you need active development or modern auth practices, consider evaluating google-auth-based alternatives or contributing to this project.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Google OAuth 2.0 Client ID JSON file (client_secret.json) downloaded from Google Cloud Console; first instantiation opens a browser for authentication.
- Low install friction with a pure-Python wheel.
- Maintenance is dormant—last release was 2023-03-13 and last commit 2025-02-07, so the package is stable but not actively developed.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive); you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2023-03-13 (1250 days) · last repo commit 2025-02-07 · 407 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 110,091 downloads/mo, #12,484 on PyPI
Alternatives
Verify before relying
pip install simplegmail
from simplegmail import Gmail
gmail = Gmail() # Opens browser for OAuth consent on first run
messages = gmail.get_unread_inbox()
for msg in messages:
print(msg.subject, msg.sender)- Whether oauth2client (a deprecated Google auth library) is still functional with current Google API versions or if migration to google-auth is planned.
- Current state of beautifulsoup4 and lxml usage for HTML parsing—whether they handle modern email HTML robustly.
What it is and what it does
simplegmail is a thin Python wrapper around the Gmail API that abstracts away OAuth setup and raw API calls. It lets you send HTML or plain-text emails with attachments and signatures, retrieve messages using Gmail's search syntax, download attachments, and modify message labels (read/unread, starred, archived, etc.) from Python code.
The package handles the OAuth 2.0 flow automatically—on first use, it opens a browser window for you to grant permissions, then caches the token locally. It depends on google-api-python-client for API calls, beautifulsoup4 and lxml for HTML parsing, python-dateutil for date handling, and oauth2client for authentication. The library is stable and production-ready but dormant; the last release was in March 2023.
Use it for
- Automate sending transactional or notification emails from a Python application without managing SMTP credentials.
- Build a script to bulk-download attachments from emails matching specific search criteria (e.g., invoices from a date range).
- Archive or label incoming emails programmatically based on sender, subject, or content rules.
- Retrieve and parse unread messages to feed into a data pipeline or chatbot.
- Sync Gmail labels and message metadata to an external database or dashboard.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a straightforward Gmail API wrapper and are comfortable with dormant maintenance.
The package is stable, has no known vulnerabilities, and low install friction. However, be aware that oauth2client is deprecated by Google; if you need active development or modern auth practices, consider evaluating google-auth-based alternatives or contributing to this project.
Install
simplegmail on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance is dormant—last release was 2023-03-13 and last commit 2025-02-07, so the package is stable but not actively developed. No known vulnerabilities.
Requires a Google OAuth 2.0 Client ID JSON file (client_secret.json) downloaded from Google Cloud Console; first instantiation opens a browser for authentication.
License in practice
MIT license (permissive); you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install simplegmail
from simplegmail import Gmail
gmail = Gmail() # Opens browser for OAuth consent on first run
messages = gmail.get_unread_inbox()
for msg in messages:
print(msg.subject, msg.sender)
Verify before relying
- Whether oauth2client (a deprecated Google auth library) is still functional with current Google API versions or if migration to google-auth is planned.
- Current state of beautifulsoup4 and lxml usage for HTML parsing—whether they handle modern email HTML robustly.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesgoogle-api-python-clientbeautifulsoup4python-dateutiloauth2clientlxml |
| Maintenance | Dormant 1,250 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 110,091 / month, #12,484 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.6 |
Evidence: simplegmail-4.1.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “gmail api python client”
- simplegmailA Python wrapper around the Gmail API that handles authentication,…
- aiogoogleAiogoogle is an async Python client for accessing Google's public…
- yagmailSimplifies sending emails via Gmail or any SMTP server, with built-in…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also yagmail · mailsuite · redmail · azure-communication-email · mailslurp-client · emails · mailtrap · imap-tools · django-post_office