No-boilerplate, async and typed Gmail access.
Project description
Sly Gmail for Python
🚧 This library is an early work in progress! Breaking changes may be frequent.
🐍 For Python 3.10+
No boilerplate, async and typed Gmail access. 😋
pip install slygmail
This library does not have full coverage. Currently, the following topics are supported:
- Sending emails
- Sending emails with attachments
You can directly grant user tokens using the command line, covering the whole OAuth 2 grant process.
Example usage:
import asyncio
from SlyGmail import *
async def main():
gmail = Gmail('test/app.json', 'test/user.json', Scope.GmailSend)
await gmail.send('person@example.com', 'test subject', 'test body')
asyncio.run(main())
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
SlyGmail-0.1.0.tar.gz
(4.1 kB
view hashes)