Coder Social home page Coder Social logo

sample_component's Introduction

A Lightning component to send a message on Slack


Lightning license Tests

About

This component lets you send a message on Slack from a Lightning app.


Use the component

import lightning as L
from lit_slack import SlackMessenger


class YourComponent(L.LightningFlow):
    def __init__(self):
        super().__init__()
        self.slack_messenger = SlackMessenger(
            token="a-long-token", channel_id="A03CB4A6AK7"
        )

    def run(self):
        self.slack_messenger.send_message("hello from ⚡ lit slack ⚡")


app = L.LightningApp(YourComponent())

install

Use these instructions to install:

git clone https://github.com/PyTorchLightning/LAI-slack-messenger.git
cd LAI-slack-messenger
pip install -e .

sample_component's People

Contributors

williamfalcon avatar borda avatar dependabot[bot] avatar

Stargazers

Siddhesh Thakur avatar

Watchers

Luca Antiga avatar John Paul Hennessy avatar Jason Hogrefe avatar  avatar Yurij Mikhalevich avatar Krishna Kalyan avatar  avatar Sebastian Raschka avatar  avatar Scott Kwait avatar Noha Alon avatar Ethan Harris avatar thomas chaton avatar Luca Furst avatar Rick Izzo avatar Kushashwa Ravi Shrimali 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.