notify messages on channels
Project description
Notify via slack
Install: pip install notify-via-slack
Usage
Create an app in slack api
Save the bot token
Copy the .env.example to .env cp .env.example .env
Replace the SLACK_BOT_TOKEN
Send a message
slack.notify import SlackNotify
handler = SlackNotify(app_name='My app name')
handler.notify(message='some message', emit_log=True, is_error=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
notify_via_slack-0.1.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for notify_via_slack-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 940d5b105c0d52fdb82aae9f78350df7bfa407fe403f9aa860892765ef47b191 |
|
MD5 | 37376e04517893b8e78c97927d4371b6 |
|
BLAKE2b-256 | cb3a45b0066f10aefea868e324e2e2ba9753865da96ef21db3a7d951dbd8d6f8 |