在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):charlierguo/gmail开源软件地址(OpenSource Url):https://github.com/charlierguo/gmail开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):GMail for PythonA Pythonic interface to Google's GMail, with all the tools you'll need. Search, read and send multipart emails, archive, mark as read/unread, delete emails, and manage labels. This library is still under development, so please forgive some of the rough edges Heavily inspired by Kriss "nu7hatch" Kowalik's GMail for Ruby library AuthorInstallationFor now, installation is manual (
Features
Basic usageTo start, import the
Authenticating gmail sessionsTo easily get up and running:
Which will automatically log you into a GMail account. This is actually a shortcut for creating a new Gmail object:
You can also check if you are logged in at any time:
OAuth authenticationIf you have already received an OAuth2 access token from Google for a given user, you can easily log the user in. (Because OAuth 1.0 usage was deprecated in April 2012, this library does not currently support its usage)
Filtering emailsGet all messages in your inbox:
Get messages that fit some criteria:
Combine flags and options:
Browsing labeled emails is similar to working with your inbox.
Every message in a conversation/thread will come as a separate message.
Working with emailsImportant: calls to
Mark news past a certain date as read and archive it:
Delete all emails from a certain person:
You can use also
Add a label to a message:
Download message attachments:
There is also few shortcuts to mark messages quickly:
Roadmap
Copyright
See LICENSE for details. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论