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


Links

Release files for matimo-gmail 0.1.3

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.1.3
File Size Uploaded
matimo_gmail-0.1.3.tar.gz 6.2 kB Details

Built distribution (wheel)

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

Total release size: 14.7 kB

Release files / matimo_gmail-0.1.3.tar.gz

Download URL matimo_gmail-0.1.3.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7c970be51f4bebae7644b88f4d25b7e18f754f84e3187d2ee36b04ad6f6f9bf1
BLAKE2b-256 checksum
How to use checksums
755e19da142da306887a9885db2422771e1d717a5c1fe825a41d01e26ebb61c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL matimo_gmail-0.1.3-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a822548030975a56ee2978d88218be65c426c3902fe3da67fca6cd5019d4a5cb
BLAKE2b-256 checksum
How to use checksums
a084288f652f2d6d34835a616444802f077c6811ce189aea78561f69007c3e60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.0

2 release files

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