Metadata-Version: 2.1
Name: slack-messenger
Version: 0.1.1
Summary: Slack Messanger Client using Incoming Webhooks
Home-page: https://github.com/LouieT/slack-messenger
Author: Louis Tadman
Author-email: <noreply@louistadman.com>
License: UNKNOWN
Project-URL: Documentation, https://github.com/LouieT/slack-messenger
Project-URL: Source, https://github.com/LouieT/slack-messenger
Keywords: python,Slack,Messenger
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown
License-File: LICENSE

# slack-messenger

## Description

The **slack-messenger** is a simple package that helps send Slack Messages via Incoming Webhook URLs. For more information on how to create 
a Slack App, and how to generate an incoming webhook URL please read the official Slack documentation on [sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks).

## How to use slack-messenger

```python
from slack-messenger import SlackMessenger

# Create the SlackMessenger object with your Incoming Webhook URL
url = "https://hooks.slack.com/services/<rest-of-the-webhook>"
sm = SlackMessenger(slackbot_webhook_url=url)

# Create your message, you can use the usual formatting and layout blocks available from Slack
message = "Hello Slack :alert-emoji:, this is sent from `slack messenger`"

# The 'send_slack_msg' method will return a tuple with the first item boolean to represent if sending
# the message was successful and a second value including a string of text of 
message_success, response_msg = sm.send_slack_msg(message=message)
print(f"SUCCESS: {message_success}  RESPONSE MSG: {response_msg}")
```

## Installing slack-messenger

Requests is available on PyPI:

```console
$ python -m pip install slack-messenger
```


