Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Lightning-Universe/Sample_component

Repository files navigation

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 .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages