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
Built Distribution
File details
Details for the file notify_via_slack-0.1.1.tar.gz
.
File metadata
- Download URL: notify_via_slack-0.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-131-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f883605bd8bc5328b89d334d6345fe9c0b74a3801089208e17742b6be98df3b6 |
|
MD5 | d7ff3a64233b73d5037bfc731a2fa7b9 |
|
BLAKE2b-256 | 5a137975b171e189ac3bc9d1312101b659f53fa5d0b4641493ffbdd2be47ad91 |
File details
Details for the file notify_via_slack-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: notify_via_slack-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-131-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 940d5b105c0d52fdb82aae9f78350df7bfa407fe403f9aa860892765ef47b191 |
|
MD5 | 37376e04517893b8e78c97927d4371b6 |
|
BLAKE2b-256 | cb3a45b0066f10aefea868e324e2e2ba9753865da96ef21db3a7d951dbd8d6f8 |