Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slack-notifications-datateam-0.0.9.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page