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(OAuth2('test/app.json', 'test/user.json'))
await gmail.send('person@example.com', 'test subject', 'test body')
asyncio.run(main())
Example CLI usage for getting authorized:
# WINDOWS
py -m SlyGmail grant
# MacOS or Linux
python3 -m SlyGmail grant
Granting credentials requires a Google Cloud Console account and JSON file. Please see https://docs.dunkyl.net/SlyAPI-Python/tutorial/oauth2.html for more information.
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
File details
Details for the file SlyGmail-0.2.0.tar.gz
.
File metadata
- Download URL: SlyGmail-0.2.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a21b9cddd47db814dff745ab64578a12b6ebc4505db14800db07230917a8084c |
|
MD5 | 6ee7a757bffbadb3068813761ac5d7f6 |
|
BLAKE2b-256 | 77ca4334613c33bbfabf4d414827fd0db6f6c6d730ddc0b3bfe8ba94bdbf57ec |
File details
Details for the file SlyGmail-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: SlyGmail-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6d9cdc1d34ca1ec151dfa39e70772830d3ac0ba4079b00dbb2869406b30bf0f |
|
MD5 | 58c73d0b31b0cae3ff1283f74dcf0876 |
|
BLAKE2b-256 | 523d836af608437d2ad7166c33b1224f6cdf058488834b1f0ac3279117fb227a |