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)
Metadata
Release files for notify-via-slack 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| notify_via_slack-0.1.1.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| notify_via_slack-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.7 kB
Release files / notify_via_slack-0.1.1.tar.gz
| Download URL | notify_via_slack-0.1.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f883605bd8bc5328b89d334d6345fe9c0b74a3801089208e17742b6be98df3b6
|
|
BLAKE2b-256 checksum How to use checksums |
5a137975b171e189ac3bc9d1312101b659f53fa5d0b4641493ffbdd2be47ad91
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-131-generic
|
Release files / notify_via_slack-0.1.1-py3-none-any.whl
| Download URL | notify_via_slack-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
940d5b105c0d52fdb82aae9f78350df7bfa407fe403f9aa860892765ef47b191
|
|
BLAKE2b-256 checksum How to use checksums |
cb3a45b0066f10aefea868e324e2e2ba9753865da96ef21db3a7d951dbd8d6f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.4.0-131-generic
|