GGmail
Manage mail account using python, forget about imap and just code what you supposed to do.
Help
See documentation for more details.
Install
Install using pip install ggmail.
A Simple Example
from ggmail import Account, Google
from ggmail.policy import from_contains, flagged
authentication = Google(username="ggmail@gmail.com", password="secret")
with Account(authentication=authentication) as account:
inbox = account.inbox()
mailbox = account.create_mailbox("Favorite")
policy = from_contains("from@gmail.com") + flagged
messages = inbox.search(policy)
for message in messages:
message.copy(mailbox)
Additional Information
Why not use imbox instead ?
https://github.com/martinrusev/imbox is less high level than ggmail. I wanted something even more human than imbox.
Why not use gmail instead ?
https://github.com/charlierguo/gmail seems to be dead.
You don't support my mail provider ?
You can raise an issue and I will add it.
Release files for ggmail 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ggmail-0.4.1.tar.gz | 11.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ggmail-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.1 kB
Release files / ggmail-0.4.1.tar.gz
| Download URL | ggmail-0.4.1.tar.gz |
|---|---|
| Size | 11.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81b087be94593e5ee5af65dacfba1520cab95be100b849a63f22c2c098241812
|
|
BLAKE2b-256 checksum How to use checksums |
9b570090d51317f46e8dcad1615a93ea56b9dbc6640dbfba5665123b62a3d64b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.2 Linux/5.15.0-1020-azure
|
Release files / ggmail-0.4.1-py3-none-any.whl
| Download URL | ggmail-0.4.1-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79516cba7970ca3276382544164e57afc5387663494d6ed33a757c0616f70680
|
|
BLAKE2b-256 checksum How to use checksums |
1612882fad8ce226e5176afdea8b874573c670726fe8f12f793227d411a2e49d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.8.2 Linux/5.15.0-1020-azure
|