Small package to send slack notifications
Project description
Slack notifitacions
Slack callback function to send alerts to any channel. It can be use for various errors on critical pieces of data pipelines.
Install
To install it is neccessary python 3.6 or greater, so review it
python3 --version
Then just need to type this
pip3 install slack-notifications-datateam
Test it
To test it you can use the following code test_slack.py
, just need to replace webhook_url and text values
from slack_notifications import slack_messages
webhook_url = 'https://hooks.slack.com/services/T00XXXXXX/B000XXXXXXX/XXXxxXXXXxXX0'
text = "Testing slack package. No need to investigate"
slack_messages.send_message(webhook_url=webhook_url,text=text)
And the just execute it
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
Close
Hashes for slack-notifications-datateam-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c391ae36dc2c3a55da414a1a1eee14fd269eaeb5cb94ef2cb70041ce32e1ba1 |
|
MD5 | fed6e33d8ebf20dc397fda58486b2eba |
|
BLAKE2b-256 | 17a8b55c6450de3819be0f798dafe1b6c11a62efe4cd6744c9b2ec2e2e88f06b |
Close
Hashes for slack_notifications_datateam-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c9a8ae6740a3dc7c8629ededb09493a69db8e73b65417207e79d85ee55439ef |
|
MD5 | 7040f9d2e4247980011956d6cf9796ec |
|
BLAKE2b-256 | 5728af9365a3320b5b03c1e2364977c786a7fe88318585e2a52c3114d4c2ea2e |