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 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

anitya-telegram-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

anitya_telegram-0.0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file anitya-telegram-0.0.1.tar.gz.

File metadata

  • Download URL: anitya-telegram-0.0.1.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

Hashes for anitya-telegram-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c8526fa4f0be83311b4a8f3159ee6960c97a69579b06d8961a6fcf35c5b151ae
MD5 a7f6aad1056d684b762ac8576626b992
BLAKE2b-256 9276ac4c2225ee27a7be2e65790661815a59451fcf720f73b4b04b28fa13e9f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for anitya_telegram-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18932ee505b2f6812dd326f70b3fa9d14d0d4820a34652c58e47b81dc9241b69
MD5 7049070dd430f6d93b05946dbcab519d
BLAKE2b-256 db5471ca983ae790bc25619d3963d5d487e82d04846b3919f28c94db69b3817b

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