Python Gmail Summary Bot
A bot to summarize your Gmail emails using the Gmail API and send summaries to Telegram.
Features
- Summarizes Gmail emails.
- Sends email summaries to a specified Telegram chat.
Installation
You can install the package via pip:
pip install telegram-gmail-bot
Setup
Creating credentials for accessing Google APIs
Step 1: Create a Service Account
- Go to the Google Cloud Console: Google Cloud Console.
- Select your project or create a new one.
- Search for APIs & Services in the search bar.
- Click on Credentials in the left sidebar.
- Click on Create Credentials and select OAuth client ID.
- Select Desktop app as the application type.
- Add the generated credentials as environment variables in your project.
Step 2: Enable the Gmail API
- Go to the API & Services page: API & Services.
- Enable the Gmail API:
- Click on "Enable APIs and Services".
- Search for "Gmail API" and enable it for your project.
Local Usage
-
Copy the example environment file and fill in your credentials:
cp .env.example .env
-
Create a virtual environment and install dependencies:
python3 -m venv . source venv/bin/activate pip install -r requirements.txt
-
Run the bot:
python main.py
Metadata
Release files for telegram-gmail-bot 0.1.16
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 | |
|---|---|---|---|---|
| telegram_gmail_bot-0.1.16.tar.gz | 3.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| telegram_gmail_bot-0.1.16-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / telegram_gmail_bot-0.1.16.tar.gz
| Download URL | telegram_gmail_bot-0.1.16.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4acd2f52b4280612c573c34d303655af87c765389e57a0ed6099cb134549c2a1
|
|
BLAKE2b-256 checksum How to use checksums |
f91453b99ad31aeaf963a0328800d16320a237227d1624bffe67cc5ace39370e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / telegram_gmail_bot-0.1.16-py3-none-any.whl
| Download URL | telegram_gmail_bot-0.1.16-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
607bd0a13f51e2f77be0990f8af5067570f3bef5493bc35a8af1f9b003be70bb
|
|
BLAKE2b-256 checksum How to use checksums |
6702042d25cfa10916dec29b0c30e685b067081692b2e3b79231f884579aeb0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for telegram-gmail-bot 0.1.16
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.