Skip to main content

Matimo provider — Gmail tools (send, list, read, delete emails)

Project description

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
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

Project details


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.0a14.post1.tar.gz (4.5 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.0a14.post1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file matimo_gmail-0.1.0a14.post1.tar.gz.

File metadata

  • Download URL: matimo_gmail-0.1.0a14.post1.tar.gz
  • Upload date:
  • Size: 4.5 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.0a14.post1.tar.gz
Algorithm Hash digest
SHA256 41da5a8bdfb3a58606e7a90405ff7e0135bcfa20f8d5fb1a6e20ee088024435f
MD5 a9a2adb8d506ef2268ce07cc0b3a6064
BLAKE2b-256 9b98b4db0b1149a578646adca54f002522c6f92021f40764f097208653e3643e

See more details on using hashes here.

File details

Details for the file matimo_gmail-0.1.0a14.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for matimo_gmail-0.1.0a14.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 008b8b864765a706bee9364a75dac2bde1ec12eabafec043559a1e5e57038e0b
MD5 d360131d41da2cfaa6dd5cc0e5e506ff
BLAKE2b-256 e761ef80957465d87a88bc86bf5bba8b3d525e38323a8d18b6d56d43ecda37fd

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 Pingdom Monitoring Sentry Error logging StatusPage Status page