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 |
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)
- 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
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)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75228dc184dc00760938844a2dfdf4769e5aeb8eda91929f44419d69ed0c429b
|
|
| MD5 |
d477c91902c3d01851e247a54fd261f3
|
|
| BLAKE2b-256 |
05f5ed2300e23cc49c7d261aabeb4740cd4f909be3ce36b77a7c4d34d98473fe
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd9ac7eb60102ac29ca38ce45df5d2808875e8e7564faed317ec27a0b6d48daa
|
|
| MD5 |
fdd29231439148235d69b7edf2ade056
|
|
| BLAKE2b-256 |
299706c08df427d5299b33320adb09220c104d00956f5e8bb809484629b54f75
|