Matimo provider — Gmail tools (send, list, read, delete emails)
Project description
matimo-gmail
Gmail tools for Matimo — send, list, read, and delete emails.
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)
- Create a project in Google Cloud Console
- Enable the Gmail API
- Create OAuth 2.0 credentials (Desktop app)
- Run the OAuth flow to get an access token
Documentation
Links
- PyPI: https://pypi.org/project/matimo-gmail/
- GitHub: https://github.com/tallclub/matimo
- Gmail API Docs: https://developers.google.com/gmail/api
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matimo_gmail-0.1.0.tar.gz.
File metadata
- Download URL: matimo_gmail-0.1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86de25bc294e02b4b2b5e4bec0512b2e618b81a0e7815858fb2512b2c675f537
|
|
| MD5 |
a81541adec2d747d5b2cffee9acee0b8
|
|
| BLAKE2b-256 |
cc38e98bbe77e2a308f6d9f5d483c591f3f40059a1a227b4dc19d9ffe7f3225d
|
File details
Details for the file matimo_gmail-0.1.0-py3-none-any.whl.
File metadata
- Download URL: matimo_gmail-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
386ddbd30af7af9455b16c7862dd102167ef21b5d14004b91af135d2f7aa80d5
|
|
| MD5 |
b1eb4bd709b5fa4e3a1143684a7bfc9a
|
|
| BLAKE2b-256 |
b661658eda85d1acafe985190f02be7b7420d55f27df9fe44975b4a00b706692
|