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_keyis a Telegram's Bot API key, can be configured viaANITYA_TG_BOT_KEYenvironment variable;chat_idsis the chats identifiers which notifications send to.
Projects section consumer_config.projects consists of:
idis a project ID from Anitya;versionsis a versions filter, which filters versions by start of string;allow_nonstable- settrueif 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
Metadata
Release files for anitya-telegram 0.0.5
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 |
|---|---|---|---|---|
| anitya_telegram-0.0.5.tar.gz | 4.1 kB | Without provenance | Details for anitya_telegram-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| anitya_telegram-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for anitya_telegram-0.0.5-py3-none-any.whl |
Total release size: 7.7 kB
Release files / anitya_telegram-0.0.5.tar.gz
| Download URL | anitya_telegram-0.0.5.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb4f1452733dab755b41e194b158dcaefb87a63549884cc1c57909b97c71abd6
|
|
BLAKE2b-256 checksum How to use checksums |
3fc6dc09209f59445085e0d6ea3bd7fa0fb91e0b0a98e0b68a7e50a34597d6c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / anitya_telegram-0.0.5-py3-none-any.whl
| Download URL | anitya_telegram-0.0.5-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
548c641bdf23b1913f1a28c7887c61a842e1171c3857f3e94dcf887847870396
|
|
BLAKE2b-256 checksum How to use checksums |
c02565bed9e2640f40da461a92c9849d0bdb0c0fe660a07015912651f49ec0b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Security for anitya-telegram 0.0.5
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.