Coder Social home page Coder Social logo

tqdmx's Introduction

tqdmx

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.

Setup

NOTE: So far tqdmx does not support encryption. The room_id is assumed to point to an unencrypted room.

  1. Create a new matrix account for your bot (recommended) or use an existing one.
  2. 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.
  3. Install this module, e.g. via pip install git+https://github.com/frcl/tqdmx.git.
  4. Provide the homeserver where the bot lives, the access_token from step 2 and the room_id where you want the bot to post updates, either directly as kwargs
    from 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()
    or via the environment variables TQDM_MATRIX_HOMESERVER, TQDM_MATRIX_ACCESS_TOKEN and TQDM_MATRIX_ROOM_ID.

tqdmx's People

Contributors

frcl avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.