Slack extension for Flask.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-Slack-0.1.3.tar.gz
(2.9 kB
view details)
Built Distributions
Flask_Slack-0.1.3-py3.4.egg
(4.7 kB
view details)
File details
Details for the file Flask-Slack-0.1.3.tar.gz
.
File metadata
- Download URL: Flask-Slack-0.1.3.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f970ef5813b31ad482d17688affdde9365eb15c52dcbd8c1f35e4edb5f9ce8 |
|
MD5 | d2f4d3f15a8395453bc6102fec8f24c6 |
|
BLAKE2b-256 | f6541c4eaadc16a6278ccd5e283af5a3b8ef0a968ac665135358c06b1ce7c9fb |
File details
Details for the file Flask_Slack-0.1.3-py3.4.egg
.
File metadata
- Download URL: Flask_Slack-0.1.3-py3.4.egg
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f2e4730be0ec2251036f855737fdbda8778ca92119238128aa3d9f5b84314cb |
|
MD5 | 57c8fa199ed5623d5b24767bd055d01d |
|
BLAKE2b-256 | c2fae4cbd60c5c41a27f8bd1615fcb9a18ff02c26ef490176792ede5e0c38e80 |
File details
Details for the file Flask_Slack-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: Flask_Slack-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b891d7aa3db9fc030f76f57b127aa08697ccda84f67f85a4c67fa124bcc7ccd6 |
|
MD5 | 8c09bfbb5eaddce3e370175eaff863ed |
|
BLAKE2b-256 | f07302a0e2bf4a3b4335bc49a26a76bec04f6add7b0bb009a53d0e82a5269973 |