Skip to main content

GGmail

GGmail Continuous Integration codecov PyPI version downloads versions License: MIT

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)

Source distribution for ggmail 0.4.1
File Size Uploaded
ggmail-0.4.1.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ggmail 0.4.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page