Skip to main content

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.

Metadata

Release files for gmail-label-email-processor 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gmail-label-email-processor 1.0.3
File Size Uploaded
gmail-label-email-processor-1.0.3.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gmail-label-email-processor 1.0.3
File Interpreter ABI Platform
gmail_label_email_processor-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 kB

Release files / gmail-label-email-processor-1.0.3.tar.gz

Download URL gmail-label-email-processor-1.0.3.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c87f906525d43302105dd1ebb2a4310045ec01b0923488d914057554b8b06bbf
BLAKE2b-256 checksum
How to use checksums
74c22caa809e29d613854cacfe3524c54675e9ce535a1ed4415e7f9721897fda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.3

Release files / gmail_label_email_processor-1.0.3-py3-none-any.whl

Download URL gmail_label_email_processor-1.0.3-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9906ccf4bc0e4e0346bbc3549c7c46e1c17e596e405b658a558f846f35f67e3d
BLAKE2b-256 checksum
How to use checksums
58e90521fe7fa9b6b93c63f6cdd5ed48bfd70229fc27dcd37beb190b0d2917b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.3

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page