Telegram gateway for Anitya release monitoring system
Project description
anitya-telegram
Telegram gateway for Anitya release monitoring system
Getting started
Before running application install dependencies:
pip install -r requirements.txt
Then make config.toml
configuration file from config.toml.example
. Gateway sets up via consumer_config
sections.
Top level parameters are api_key
and chat_ids
:
api_key
is a Telegram's Bot API key, can be configured viaANITYA_TG_BOT_KEY
environment variable;chat_ids
is the chats identifiers which notifications send to.
Projects section consumer_config.projects
consists of:
id
is a project ID from Anitya;versions
is a versions filter, which filters versions by start of string;allow_nonstable
- settrue
if you want receive notifications about non-stable releases too.
To run gateway execute command below:
fedora-messaging --conf config.toml consume --callback-file anitya_tg_gw.py:TelegramForwardConsumer
Configuration file can be also set up via FEDORA_MESSAGING_CONF
environment variable.
Development
Create virtual environment:
python -m venv .venv
Venv activation / deactivation on Windows:
.venv\Scripts\Activate.ps1
deactivate
To run tests execute command below:
python -m unittest discover -v anitya_telegram\tests\
Links
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
File details
Details for the file anitya-telegram-0.0.2.tar.gz
.
File metadata
- Download URL: anitya-telegram-0.0.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e69800b384f1b209854302cd9ed2f92771e5a47091cc2dddf80805e2e7738a3b |
|
MD5 | 1d5cb782e6ab97fd215f3519da08e6cb |
|
BLAKE2b-256 | f42ce41d7b9daf2ba0e8dd145bc22bbcb4aff0869d048360f9d2e149882e9a0b |
File details
Details for the file anitya_telegram-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: anitya_telegram-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7016d24c0b22648742b7890e16fb85eae75d520d394c4049480e1d2d0371a659 |
|
MD5 | 8ad8b896223c705421f4b7ba0a183fb2 |
|
BLAKE2b-256 | a76169df79dff7f993272c11c409619cc42ab7b7f08c852bd32aa7e2c12de317 |