Skip to main content

A module for managing Gmail labels.

Project description

Gmail Label Manager

The gmail_label_manager module is a crucial component of the Gmail Label Email Processor toolkit, designed to interact with Gmail labels. It allows for fetching the ID of specific Gmail labels, enabling precise control and filtering of emails for processing based on label criteria.

Features

  • Retrieve the ID of a specific Gmail label.
  • Supports integration with Gmail API to manage and utilize labels for email processing tasks.

Installation

This module is part of the Gmail Label Email Processor toolkit. To use it, ensure you have Python 3.6 or higher installed.

git clone https://github.com/yourusername/gmail-label-email-processor.git
cd gmail-label-email-processor


## Prerequisites

Before using the gmail_label_manager, you must have completed the authentication setup provided by gmail_api_auth.py, including obtaining a credentials.json file from the Google Developer Console and ensuring it is placed in the project root.

## Usage

The gmail_label_manager module can be used to fetch label IDs as part of email processing workflows. Here's a simple example:

```bash
from gmail_label_manager import get_label_id_by_name

# Fetch the ID of a specific label
label_id = get_label_id_by_name("YOUR_LABEL_NAME_HERE")

if label_id:
    print(f"Label ID for 'YOUR_LABEL_NAME_HERE': {label_id}")
else:
    print("Label not found.")

Replace "YOUR_LABEL_NAME_HERE" with the actual name of the Gmail label you wish to manage.

Contributing

Contributions to the gmail_label_manager or any other component of the Gmail Label Email Processor toolkit 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-manager-0.1.3.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gmail_label_manager-0.1.3-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file gmail-label-manager-0.1.3.tar.gz.

File metadata

  • Download URL: gmail-label-manager-0.1.3.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for gmail-label-manager-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a477fa0b27a48fefa00c36a906c3b96a87787b4be6431f9d1bc5810d1426244e
MD5 1e1111746225aaa1d837e5b6ab4c9ccc
BLAKE2b-256 9e0ff456cff480dc77d149dab809ae04b5e83bbd9196ce953f7562d22b2f16cc

See more details on using hashes here.

File details

Details for the file gmail_label_manager-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for gmail_label_manager-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 553f3564c7ad8926308f750d967db05ff4cf90c45aa109ee7a434fe417b5cebc
MD5 a9134fcead7f267a973ddd49c24fb7d0
BLAKE2b-256 3cb99ce2f4c348e33832cdde83f2250dfcb30e171f7b4846677c410370d49ae9

See more details on using hashes here.

Supported by

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