Flask-Slack
Flask-Slack is a Flask extension which makes it easy to interact with Slack slash commands.
Installation
You can install Flask-Slack with pip:
$ pip install flask-slack
Or, with setuptools easy_install in case you didn’t have pip:
$ easy_install flask-slack
Usage
from flask_slack import Slack
slack = Slack(app)
app.add_url_rule('/', view_func=slack.dispatch)
@slack.command('your_command', token='your_token',
team_id='your_team_id', methods=['POST'])
def your_method(**kwargs):
text = kwargs.get('text')
return slack.response(text)
Documentation
The full documentation is available at readthedocs.org
Release files for Flask-Slack 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Flask-Slack-0.1.5.tar.gz | 4.6 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Flask_Slack-0.1.5-py3.4.egg | Legacy Egg format | - | - | Details |
| Flask_Slack-0.1.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 18.5 kB
Release files / Flask-Slack-0.1.5.tar.gz
| Download URL | Flask-Slack-0.1.5.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4b5336d86daae445327a9836df5a3301c2a8d00f97563083d5b1578cd4abce4
|
|
BLAKE2b-256 checksum How to use checksums |
d708f78b6c39d265313e7e235f4813b6763cc2aa00f7fa77744afeb38e9deca7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Flask_Slack-0.1.5-py3.4.egg
| Download URL | Flask_Slack-0.1.5-py3.4.egg |
|---|---|
| Size | 8.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
ad5915f3de53c1e6107eb7922d5f82418e9afa98d89ad03c34cc0612adc5acb9
|
|
BLAKE2b-256 checksum How to use checksums |
740247b16c6e3ff37b429cf864654a53521b9cdad2662a65e13ab1b3391cfe66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Flask_Slack-0.1.5-py2.py3-none-any.whl
| Download URL | Flask_Slack-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d0720afb35d6e48f1e2f54c2ba9e88c0df757980da686d4810c989ff52572d93
|
|
BLAKE2b-256 checksum How to use checksums |
66bf605edc383cabea03d5ca6f024c00d6e8767ad93e2fc714ac60404bfdf2e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |