Pythonic Gmail client
Project description
Pythonic Gmail client (WIP)
Features
[x] Clean API
[x] No other dependencies than standard libraries
[-] Supports all of the SEARCH criteria
[-] Supports access to all of the HEADER fields via attributes
[ ] Lazy loading for contents
Example
import sys
import getpass
import datetime
from gmaily import Gmaily
g = Gmaily()
user_email = input('Email: ')
user_pw = getpass.getpass()
if not g.login(user_email, user_pw):
print('Cannot login')
sys.exit(1)
msgs = g.inbox().after(datetime.date.today() - datetime.timedelta(weeks=2))
for msg in msgs.all():
print('\n' + (' Mail UID: %d ' % msg.uid).center(80, '=') + '\n')
print('Subject:', msg.subject)
print('From:', msg.sender)
print('Date:', msg.date)
print('Attachments:', msg.attachments)
print('-' * 10)
print(msg.text)
g.logout()
Installation
Currently it requires Python 3.
$ pip install gmaily
License
MIT
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
gmaily-0.0.1.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file gmaily-0.0.1.tar.gz
.
File metadata
- Download URL: gmaily-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
472519d59fa4403051b213a615231a00e434e19dc604d91580ba8def9503bfab
|
|
MD5 |
f8954aa4ea0beb485b0f636b5371f479
|
|
BLAKE2b-256 |
b882f381b4b0f775ee6127982c495cd55077d2a4379ca9ecbec57b6eabbf72ac
|
File details
Details for the file gmaily-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: gmaily-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f7e778404d1b41a790603aef28c8df22da0b6d13ffafd85f21ccd688b87644ed
|
|
MD5 |
75cb1b0c8dd158650bed10b6e8b20d30
|
|
BLAKE2b-256 |
cbb7991bbf9796ca49323b3c531b7139832d31bdb8e40cdb9471b02fbcc900b3
|