Skip to main content

A comprehensive toolkit for processing emails via Gmail API, including authentication, label management, message processing, and data exporting.

Project description

Gmail Label Email Processor

The Gmail Label Email Processor is a Python toolkit designed to automate the process of managing and processing emails through the Gmail API. This tool facilitates the fetching of emails based on specific labels, extraction of email addresses from these emails, and exporting the processed data into a CSV file for further analysis or use. Ideal for individuals and businesses looking to enhance their email management and data extraction workflows.

Features

  • Authenticate with the Gmail API securely.
  • Fetch emails by user-defined labels.
  • Extract 'To', 'Cc', and 'Bcc' email addresses from emails.
  • Export extracted email addresses to a CSV file.
  • Simplify the automation of email processing tasks.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3.6 or higher installed on your machine.
  • Access to a Google Cloud Platform account with the Gmail API enabled.
  • A credentials.json file obtained from the Google Developer Console for your Gmail API project.

Installation

From GitHub

Clone and install dependencies:

git clone https://github.com/SokinjoNS/gmail-label-email-processor.git
cd gmail-label-email-processor
pip install -r requirements.txt

From PyPI

Install directly:

pip install gmail-label-email-processor

Usage

After installation, configure credentials.json in the project's root and modify main.py or use the command-line interface:

gmail-processor --label "Your Label Name"

Replace "Your Label Name" with the actual label you're interested in.

Place your credentials.json file in the root directory of the project.

Contributing

Contributions are welcome.

License

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

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

gmail-label-email-processor-1.0.3.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

gmail_label_email_processor-1.0.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file gmail-label-email-processor-1.0.3.tar.gz.

File metadata

File hashes

Hashes for gmail-label-email-processor-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c87f906525d43302105dd1ebb2a4310045ec01b0923488d914057554b8b06bbf
MD5 3a0296d1154c8bfbe0ea3a36a344a69a
BLAKE2b-256 74c22caa809e29d613854cacfe3524c54675e9ce535a1ed4415e7f9721897fda

See more details on using hashes here.

File details

Details for the file gmail_label_email_processor-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gmail_label_email_processor-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9906ccf4bc0e4e0346bbc3549c7c46e1c17e596e405b658a558f846f35f67e3d
MD5 58cc8636b1f56b30b05894b5e9cf00ed
BLAKE2b-256 58e90521fe7fa9b6b93c63f6cdd5ed48bfd70229fc27dcd37beb190b0d2917b1

See more details on using hashes here.

Supported by

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