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
send-email Send an email (to, subject, body, cc, bcc, html)
list-messages List messages with optional query/label filters
get-message Get full message content by ID
get-attachment Fetch a message attachment by ID (base64url-encoded)
create-draft Create a draft email
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('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('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"
# Or use a service account
export GMAIL_SERVICE_ACCOUNT_JSON="/path/to/service-account.json"

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matimo_gmail-0.1.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matimo_gmail-0.1.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file matimo_gmail-0.1.2.tar.gz.

File metadata

  • Download URL: matimo_gmail-0.1.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matimo_gmail-0.1.2.tar.gz
Algorithm Hash digest
SHA256 75228dc184dc00760938844a2dfdf4769e5aeb8eda91929f44419d69ed0c429b
MD5 d477c91902c3d01851e247a54fd261f3
BLAKE2b-256 05f5ed2300e23cc49c7d261aabeb4740cd4f909be3ce36b77a7c4d34d98473fe

See more details on using hashes here.

File details

Details for the file matimo_gmail-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: matimo_gmail-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for matimo_gmail-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd9ac7eb60102ac29ca38ce45df5d2808875e8e7564faed317ec27a0b6d48daa
MD5 fdd29231439148235d69b7edf2ade056
BLAKE2b-256 299706c08df427d5299b33320adb09220c104d00956f5e8bb809484629b54f75

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page