$npx skillfedfor your agent

simplegmail

A simple Python API client for Gmail.

With conditionsPyPI InternetReleased Mar 2023110.1K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — simplegmail-4.1.1-py3-none-any.whl
v4.1.1 · released 2023-03-13 · 5 runtime deps: google-api-python-client, beautifulsoup4, python-dateutil, oauth2client, lxml

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

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.
Same gist for agents: .md · .json

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.

With conditions

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

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
google-api-python-clientbeautifulsoup4python-dateutiloauth2clientlxml
MaintenanceDormant 1,250 days since the last release
Last repo commit
First released
Downloads110,091 / month, #12,484 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
gmail api python clientsend email via gmail apiretrieve gmail messages pythongmail label managementgmail attachment downloadgmail search query pythonoauth gmail automation
Topics
email-automationoauth2gmail-api

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 Worth it
PyPI · Internet · released Aug 2026

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.

permissive licensepure Python · 3.10+
1.5Bdownloads / mo
aiobotocore Worth it
PyPI · Internet · released Aug 2026

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.

Apache-2.0pure Python · 3.10+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
filelock Worth it
PyPI · Libraries · released Aug 2026

Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.

MITpure Python · 3.10+
717.1Mdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
googleapis-common-protos Worth it
PyPI · Internet · released Aug 2026

Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.

Apache-2.0pure Python · 3.10+
513.7Mdownloads / mo

See also yagmail · mailsuite · redmail · azure-communication-email · mailslurp-client · emails · mailtrap · imap-tools · django-post_office