Skip to main content

matimo-gmail

Gmail tools for Matimo - send, list, read, and delete emails.

PyPI Docs


Installation

pip install matimo matimo-gmail

Available Tools (6 Total)

Tool Description
gmail-send-email Send an email (to, subject, body, cc, bcc, html)
gmail-list-messages List messages with optional query/label filters
gmail-get-message Get full message content by ID
gmail-get-attachment Fetch a message attachment by ID (base64url-encoded)
gmail-create-draft Create a draft email
gmail-delete-message Move message to trash

Quick Start

import asyncio
from matimo import Matimo
from matimo_gmail import get_tools_path

async def main():
    matimo = await Matimo.init(get_tools_path())

    # Send an email
    await matimo.execute('gmail-send-email', {
        'to': 'user@example.com',
        'subject': 'Hello from Matimo',
        'body': 'This message was sent by an AI agent.',
    })

    # List recent messages
    result = await matimo.execute('gmail-list-messages', {
        'query': 'is:unread',
        'max_results': 10,
    })

asyncio.run(main())

Authentication

Gmail tools use OAuth2. Set your credentials via environment variables:

export GMAIL_ACCESS_TOKEN="ya29.your-oauth2-access-token"

Getting an Access Token (OAuth2)

  1. Create a project in Google Cloud Console
  2. Enable the Gmail API
  3. Create OAuth 2.0 credentials (Desktop app)
  4. Run the OAuth flow to get an access token

Documentation


Metadata

Release files for matimo-gmail 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matimo-gmail 0.4.0
File Size Uploaded Provenance Actions
matimo_gmail-0.4.0.tar.gz 8.4 kB Without provenance Details for matimo_gmail-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for matimo-gmail 0.4.0
File Interpreter ABI Platform Actions
matimo_gmail-0.4.0-py3-none-any.whl Python 3 none any Details for matimo_gmail-0.4.0-py3-none-any.whl

Total release size: 19.9 kB

Release files / matimo_gmail-0.4.0.tar.gz

Download URL matimo_gmail-0.4.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
431d53108caa8c1a749e06952ed7d175bf7f932ccb764aedd1ce8b307e83a43e
BLAKE2b-256 checksum
How to use checksums
5fb32ab7074b1bed150bbbe4a6a880775146ffa17c152768c602f7f055858dc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / matimo_gmail-0.4.0-py3-none-any.whl

Download URL matimo_gmail-0.4.0-py3-none-any.whl
Size 11.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0124ffd6add879ea642b37c0e8841c428bd8d74fbf76e425fa61df749ff48e13
BLAKE2b-256 checksum
How to use checksums
f8b7afb7218ebc1f8fa173fcb6c487186545ae5447936df6c08f73db59e81389
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for matimo-gmail 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page