Sending Notifications to Your Smartphone for Specific Keywords in Emails
The project involves creating a program that reads gmail and sends notifications to your smartphone using slack when a specific keyword appears.
Overview
This idea came from the challenge of having to sort through many emails every day to find the important ones. Gmail already has a labeling function that classifies emails based on specific email addresses as filters. This project aims to create a function that sends notifications based on keywords using slack and smartphones. There is also potential to expand this project to find information in other ways besides just keywords.
Dependencies
- slack_sdk
Usage
Quick Start
- Install the package:
pip install project_progress
-
Set up your Slack webhook URL. Follow these instructions to create a Slack webhook URL.
-
Create a Python script and import the required functions:
from project_progress import read_email_titles, sendSlackWebhook
- Use the functions to read email titles and send Slack notifications based on specific keywords:
email_titles = read_email_titles()
keyword = "important"
for title in email_titles:
if keyword in title:
sendSlackWebhook("Keyword found in email title: " + title, webhook_url)
Lint/Test
To run linting and tests, you need to have the following tools installed:
Flake8 for linting pytest for testing Install them using pip:
pip install flake8 pytest
Linting
To lint your code, run the following command in your project directory:
flake8
Testing
To run tests, execute the following command in your project directory:
pytest
For more detailed usage instructions and available options, please refer to the documentation.
Metadata
Release files for project-2023 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| project_2023-0.1.2.tar.gz | 15.3 kB | Without provenance | Details for project_2023-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| project_2023-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for project_2023-0.1.2-py3-none-any.whl |
Total release size: 31.7 kB
Release files / project_2023-0.1.2.tar.gz
| Download URL | project_2023-0.1.2.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40fc1a3c93c53ebba2203e70722cffb7875d5667e541316db88bae3bf861f8b3
|
|
BLAKE2b-256 checksum How to use checksums |
8869a9eeb3212bcc3248be02a38d75e5d2826d46847c34a29d2b7604c43ccf1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / project_2023-0.1.2-py3-none-any.whl
| Download URL | project_2023-0.1.2-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e35ff5121088c13113c785c65cd52cc690b5da99666499f90ace20967c159c9
|
|
BLAKE2b-256 checksum How to use checksums |
a5fb904dacc8cebecffbca903d3d9177a003679b16240b293839b60991585412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for project-2023 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.