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 hashes)

Uploaded Source

Built Distribution

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