Skip to main content

Manage gmail account using python, forget about imap and just code what you supposed to do.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ggmail-0.4.1.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ggmail-0.4.1-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file ggmail-0.4.1.tar.gz.

File metadata

  • Download URL: ggmail-0.4.1.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.2 Linux/5.15.0-1020-azure

File hashes

Hashes for ggmail-0.4.1.tar.gz
Algorithm Hash digest
SHA256 81b087be94593e5ee5af65dacfba1520cab95be100b849a63f22c2c098241812
MD5 59b04fb60c652b79d116d3350380af86
BLAKE2b-256 9b570090d51317f46e8dcad1615a93ea56b9dbc6640dbfba5665123b62a3d64b

See more details on using hashes here.

File details

Details for the file ggmail-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: ggmail-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.1 CPython/3.8.2 Linux/5.15.0-1020-azure

File hashes

Hashes for ggmail-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79516cba7970ca3276382544164e57afc5387663494d6ed33a757c0616f70680
MD5 238a3f5208ed9695951752fd244e067e
BLAKE2b-256 1612882fad8ce226e5176afdea8b874573c670726fe8f12f793227d411a2e49d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page