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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slack_notifications_datateam-0.0.9-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file slack-notifications-datateam-0.0.9.tar.gz.

File metadata

  • Download URL: slack-notifications-datateam-0.0.9.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for slack-notifications-datateam-0.0.9.tar.gz
Algorithm Hash digest
SHA256 8c391ae36dc2c3a55da414a1a1eee14fd269eaeb5cb94ef2cb70041ce32e1ba1
MD5 fed6e33d8ebf20dc397fda58486b2eba
BLAKE2b-256 17a8b55c6450de3819be0f798dafe1b6c11a62efe4cd6744c9b2ec2e2e88f06b

See more details on using hashes here.

File details

Details for the file slack_notifications_datateam-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: slack_notifications_datateam-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for slack_notifications_datateam-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2c9a8ae6740a3dc7c8629ededb09493a69db8e73b65417207e79d85ee55439ef
MD5 7040f9d2e4247980011956d6cf9796ec
BLAKE2b-256 5728af9365a3320b5b03c1e2364977c786a7fe88318585e2a52c3114d4c2ea2e

See more details on using hashes here.

Supported by

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