A simple Gmail API client for applications in Python
noauth_local_webserver
flag to Gmail
constructoraccess_type
to Gmail
constructor (though I believe Google returns refresh tokens regardless of whether offline or online is specified)create_label
and delete_label
functionalitycc
and bcc
fields to Message
list
, in
, delivered_to
, category
, larger
, smaller
, id
, has
.sender="John Doe <[email protected]>"
style sender addresses with signature=True
.The behavior of exclude_KEYWORD
parameters in construct_query
has been changed to allow exclude_KEYWORD
to accept the values to exclude rather than negating the values assigned to KEYWORD
. This is not compatible with prior versions. For example to exclude a label went from
construct_query(labels='finance', exclude_labels=True)
to
construct_query(exclude_labels='finance')
which allows users to more easily combine positive and negative search terms. This is a big quality of life improvement for creating complex queries.