Tips N Tricks #1: Send messages to Slack using Python




[ad_1]

In the Tips N Tricks series, I will upload short videos with small tips that can help you with daily work.

In this video, I show how to build a small app to send #slack notifications from #python. You can use it to send you information and loss of model training, success/failure of models or for any kind of logs that you want.

Sandesh library is available on pip: pip install sandesh and github repo is here: https://github.com/abhishekkrthakur/sandesh

Source


[ad_2]

Comment List

  • Abhishek Thakur
    November 26, 2020

    Thanks for sharing. How to post a message to Slack in tabular format from python?

  • Abhishek Thakur
    November 26, 2020

    Hi thanks for the tutorial. I was following along nicely, but when I click "add new webhook" it always says "no channels found" in the search bar and typing the name does nothing. Do you have any idea what might be causing this ?

  • Abhishek Thakur
    November 26, 2020

    Can we send only single text in this way like you did in the video? Like I want to send some 3 or 4 values which are already stored in some variables and some text along with them? Is that possible?

  • Abhishek Thakur
    November 26, 2020

    module 'pip._vendor.requests' has no attribute 'Session'
    this is the error I am getting.

  • Abhishek Thakur
    November 26, 2020

    Hi Abhishek,

    I see this error message when i try ur script and also the import Sandesh.

    (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x10c4c9080>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))

  • Abhishek Thakur
    November 26, 2020

    Thank you so much for this video! Banged my head with the 'missing_scope' error that I get following the instructions on the Slack API website. Finally the method Abhishek showed here worked without a hitch!

  • Abhishek Thakur
    November 26, 2020

    Very informative video Abhishek good job..

  • Abhishek Thakur
    November 26, 2020

    How to set VS code on server?

  • Abhishek Thakur
    November 26, 2020

    @Abhishek Thakur This is really nice.. what do you think about using "slacker" API instead?

  • Abhishek Thakur
    November 26, 2020

    Thank you very much Abhishek. I've made myself sure that I've subscribed and ON the notification bell on your channel to learn more from knowledge you're sharing. Such a gold us.

  • Abhishek Thakur
    November 26, 2020

    I like using apprise. It supports various push notification platforms. https://github.com/caronc/apprise

  • Abhishek Thakur
    November 26, 2020

    Cool …so no more checking kaggle while training is going on …after set number of epochs, we can send slack message or SMS..thanks

  • Abhishek Thakur
    November 26, 2020

    Great job! Many Thanks!
    I am waiting for videos about VSCode tips and tricks, daily workflow and how to speed up coding 🙂

  • Abhishek Thakur
    November 26, 2020

    Very simple and effective. Thanks Abhishek!

  • Abhishek Thakur
    November 26, 2020

    This is fantastic tricks thanks for sharing looking for more this kind of videos.

  • Abhishek Thakur
    November 26, 2020

    I should watch your videos several times and learn something new every time. Thanks a lot.

  • Abhishek Thakur
    November 26, 2020

    while doing export webhook_slack= webhook url and after running the python file , I don't get message on my slack channel ,
    what can be the possible error

  • Abhishek Thakur
    November 26, 2020

    Nothing for new comers into data science . I was expecting so but sad 🙁 i hope Abhishek would create something by considering people like who are struggling who start theirs carrier path into Data SCIENCE and ML .

  • Abhishek Thakur
    November 26, 2020

    Great video!
    Would love a set-up tour video in the future about the coding environment

  • Abhishek Thakur
    November 26, 2020

    cool

  • Abhishek Thakur
    November 26, 2020

    What's the IDE that u r using for python ?

Write a comment