This small module provides a way to view your tqdm progress bar in your matrix client, similar to what is already possible out of the box for telegram.
NOTE: So far tqdmx
does not support encryption. The room_id
is assumed to point to an unencrypted room.
- Create a new matrix account for your bot (recommended) or use an existing one.
- Login to the account to get an
access_token
(in element this is in All Settings > Help & About at the very bottom). Also you need to join the room you want to post updates in manually. - Install this module, e.g. via
pip install git+https://github.com/frcl/tqdmx.git
. - Provide the
homeserver
where the bot lives, theaccess_token
from step 2 and theroom_id
where you want the bot to post updates, either directly as kwargsor via the environment variablesfrom tqdmx import trange homeserver = 'matrix.org' token='syt_some_long_secret_token' room_id = '#some_room:matrix.org' for _ in trange(10, homeserver=homeserver, access_token=token, room_id=room_id): do_stuff()
TQDM_MATRIX_HOMESERVER
,TQDM_MATRIX_ACCESS_TOKEN
andTQDM_MATRIX_ROOM_ID
.