Skip to main content

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


Download files

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

Source Distribution

notify_via_slack-0.1.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

notify_via_slack-0.1.1-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

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