Skip to main content

Telegram gateway for Anitya release monitoring system

Project description

anitya-telegram

Telegram gateway for Anitya release monitoring system

Telegram notifications from Anitya

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 via ANITYA_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 - set true if you want receive notifications about non-stable releases too.

To run gateway execute the 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.

Docker

You can use docker images also:

docker pull harbor.smthd.com/anitya-telegram/anitya-telegram:latest

Development

Create virtual environment:

python -m venv .venv

Venv activation / deactivation on Windows:

.venv\Scripts\Activate.ps1
deactivate

To run tests execute the 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

anitya_telegram-0.0.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

anitya_telegram-0.0.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file anitya_telegram-0.0.5.tar.gz.

File metadata

  • Download URL: anitya_telegram-0.0.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for anitya_telegram-0.0.5.tar.gz
Algorithm Hash digest
SHA256 eb4f1452733dab755b41e194b158dcaefb87a63549884cc1c57909b97c71abd6
MD5 f74b4d03b0ce3f5502892885b1d4e603
BLAKE2b-256 3fc6dc09209f59445085e0d6ea3bd7fa0fb91e0b0a98e0b68a7e50a34597d6c3

See more details on using hashes here.

File details

Details for the file anitya_telegram-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for anitya_telegram-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 548c641bdf23b1913f1a28c7887c61a842e1171c3857f3e94dcf887847870396
MD5 869b8788d18cc75b90de798aac5914aa
BLAKE2b-256 c02565bed9e2640f40da461a92c9849d0bdb0c0fe660a07015912651f49ec0b8

See more details on using hashes here.

Supported by

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