Skip to content

aethersg/slack_notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack_notifications

Python language to use slack notifications

Very simple slack client by using slack api webhook.

How to install

To install slack-notifications, simply:

$ sudo pip install slack_notification

or from source:

$ sudo python setup.py install

Getting started

Get a token of slack webhook on slack page.

Instantiate:

> import slack_notification
> slack = slackweb.Slack(url="https://hooks.slack.com/services/XXXXXXXXXX/XXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXX")

In case that you want to send a simple message:

> slack.notify(text="Don't even trip dawg")

In case that you want to send a custom message:

> slack.notify(text="get schwifty!!", channel="#showmewhatyougot", username="rick")

More detail description of message formatting, refer according pages:

About

Python language to use slack notification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages