<commit_before># fabric-slack-tools - Tools to integrate Fabric with Slack

Easily send messages during your deployments or any other Fabric command using slack.

## Installation
* `pip install fabric-slack-tools`

## Example fabfile
```python
from fabric.api import *
from fabric_slack_tools import *

def do_build():
    send_slack_message("This is the text", channel="#mychannel", username="TheBot")

@roles("webserver")
@announce_deploy("MyProject", channel="builds", username="MyBuildBot")
def deploy_server():
    run("do something")


init_slack("https://examplecorp.slack.com/services/hooks/incoming-webhook?token=<KEY>")
```<commit_msg>Update README.md to reflect changes<commit_after># fabric-slack-tools - Tools to integrate Fabric with Slack

Easily send messages during your deployments or any other Fabric command using slack.

## Installation
* `pip install fabric-slack-tools`

## Slack webhook setup
Create an incoming webhook on Slack integration configuration. There, you will be asked which user to post as and which
channel to announce to. This means you only need send data to the webhook URL, no need for any other configuration
on client side other than the URL itself and the message to announce

## Example fabfile
```python
from fabric.api import *
from fabric_slack_tools import *

def do_build():
    send_slack_message("This is the text")

@roles("webserver")
@announce_deploy("MyProject")
def deploy_server():
    run("do something")


init_slack("https://<KEY>")
```
{'fraction_non_alphanumeric': 0.10013351134846461, 'fraction_numerical': 0.0, 'mean_word_length': 5.489177489177489, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1934263', 'n_tokens_mistral': 442, 'n_tokens_neox': 431, 'n_words': 159}