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
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41da5a8bdfb3a58606e7a90405ff7e0135bcfa20f8d5fb1a6e20ee088024435f
|
|
| MD5 |
a9a2adb8d506ef2268ce07cc0b3a6064
|
|
| BLAKE2b-256 |
9b98b4db0b1149a578646adca54f002522c6f92021f40764f097208653e3643e
|
File details
Details for the file matimo_gmail-0.1.0a14.post1-py3-none-any.whl.
File metadata
- Download URL: matimo_gmail-0.1.0a14.post1-py3-none-any.whl
- Upload date:
- Size: 7.8 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 |
008b8b864765a706bee9364a75dac2bde1ec12eabafec043559a1e5e57038e0b
|
|
| MD5 |
d360131d41da2cfaa6dd5cc0e5e506ff
|
|
| BLAKE2b-256 |
e761ef80957465d87a88bc86bf5bba8b3d525e38323a8d18b6d56d43ecda37fd
|