Metadata-Version: 2.1
Name: slackinformer
Version: 0.0.2
Summary: Informs Slack for sth.
Home-page: https://github.com/blgnksy/slackinformer/
Author: Fatih Baltacı
Author-email: baltacifatih14@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Description-Content-Type: text/markdown
Requires-Dist: slackclient

## Sending Slack Messages 

* Install python library

`pip install slackinformer`

* Export Slack API Key Environment Variable as SLACK_CLIENT_API_KEY

`export SLACK_CLIENT_API_KEY=<YOUR_API_KEY>`

* Import slackinformer module.

`from slackinformer.slackinformer import send_slack_message`


* Create content to be sent. For example: 

`content = "YOLOv3 - Last Mean Average Precision(mAP) - Epoch(" + epoch + "): " + "*" + mAP + "*"`


* Create plot path. Suppose plot path is: output/map_epoch_plot.png

`img_path = os.path.join("output", "map_epoch_plot.png")`


* Send message

`send_slack_message(channel="#general", title="Image Title" content, img_path)`


