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
Built Distribution
Hashes for gmail-label-manager-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb80a444ad03cce19357d13e4a56d5b398e0bb91391b022a12c3edd4d9d6e269 |
|
MD5 | 297037ef40982cfa07e553e0b9738fcf |
|
BLAKE2b-256 | e413188f91dc1436e9152a02dcc81de58eabeda0119d22267592ede5b673c26c |
Hashes for gmail_label_manager-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7561c82fb5f3d15052cd8e97a4a890d7b87d3230d48cd1624e63233ab041e9ad |
|
MD5 | c81d01443ae81aad765a15712774ad2e |
|
BLAKE2b-256 | 7f94121235a582f95b0957f151907670f94257cfa847f5fabbf54f8207761660 |