<commit_before># slack

slack is a Python package that provides interface to [Slack](https://slack.com/).

## Installation

Install via [pip](https://pip.pypa.io/en/latest/)
```
$ pip install pyslack
```

Install from source:
```
$ git clone git://github.com/kn/slack.git
$ cd slack
$ python setup.py install
```

## Getting Started

You need to get your Slack token from [api.slack.com](https://api.slack.com/).

```
> import slack
> import slack.chat
> slack.api_token = 'your_token'
> slack.post_message('#eng', 'Hello slackers!')
```<commit_msg>Add available methods section in README<commit_after># slack

slack is a Python package that provides interface to [Slack](https://slack.com/).

## Installation

Install via [pip](https://pip.pypa.io/en/latest/)
```
$ pip install pyslack
```

Install from source:
```
$ git clone git://github.com/kn/slack.git
$ cd slack
$ python setup.py install
```

## Getting Started

You need to get your Slack token from [api.slack.com](https://api.slack.com/).

```
> import slack
> import slack.chat
> slack.api_token = 'your_token'
> slack.post_message('#eng', 'Hello slackers!')
```

## Available Methods

All methods in [a preview release of Slack API](https://api.slack.com/) are available.
{'fraction_non_alphanumeric': 0.1612641815235008, 'fraction_numerical': 0.0, 'mean_word_length': 4.277777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 7, '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': '6755524', 'n_tokens_mistral': 445, 'n_tokens_neox': 413, 'n_words': 118}