Skip to main content

A simple Gmail API client to fetch emails based on specific criteria

Project description

GmailBox Package

This Python package provides a simple interface to fetch emails via the Gmail API based on specific criteria.

Features

  • Retrieve unread emails
  • Fetch emails sent to a specific recipient
  • Search for emails with specific raw Gmail query terms (e.g., has:attachment)

Installation

Install this package using pip:

pip install gmailimbox

Usage

Here is a basic example of how to use the GmailBox to fetch unread emails with attachments:

from gmailimbox import GmailBox

gmail = GmailBox()
emails = gmail.messages(unread=True, raw='has:attachment')
for email in emails:
    print(email)

Ensure you have configured your OAuth credentials correctly as described in the project documentation.

Contributing

Contributions are welcome! Please feel free to submit pull requests or issues to improve the functionality of this package.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Santosh Kumar

GitHub: santoshray02 For more information, visit the GitHub repository.

2. LICENSE

MIT License

Copyright (c) 2023 Santosh Kumar

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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

gmailimbox-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

gmailimbox-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file gmailimbox-0.1.0.tar.gz.

File metadata

  • Download URL: gmailimbox-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for gmailimbox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 114c6f1c9988758340c8a71b1b5ff2a4fc4bcd2869bdfc7c97d73254fdc9aea6
MD5 ce4fcbc09b27b6c468c50e0b8fa6d900
BLAKE2b-256 964311538f0be5218a3603b714a31f55cfe32d40b7459d894c221ea486dd131b

See more details on using hashes here.

File details

Details for the file gmailimbox-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gmailimbox-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for gmailimbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 811d394d5765c1d0563ba150e4a44b463a50a3640bfea0de3f6ba7e26531d021
MD5 9caa8ebafd3a7f1b2f3d6c83ab162b11
BLAKE2b-256 93faa6ad96be00ab98d9d14da490faf83de4bdaaee242ddd395da301fa9ecf98

See more details on using hashes here.

Supported by

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