Slack extension for Flask.
Project description
UNDER DEVELOPMENT, API WILL CHANGE!
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)
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.1.tar.gz
(3.3 kB
view details)
Built Distribution
Flask_Slack-0.1.1-py3.4.egg
(4.2 kB
view details)
File details
Details for the file Flask-Slack-0.1.1.tar.gz
.
File metadata
- Download URL: Flask-Slack-0.1.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5b8dee5f7dfc4f262f8410e786f3220718dc9584380e57e09b5f75d2b20d0ca |
|
MD5 | 465ed1d65712622e28e2804144aab45c |
|
BLAKE2b-256 | d4fac67371de087264921a22bb6348c7a0026861aefe940f3e9f06acf49b17c4 |
File details
Details for the file Flask_Slack-0.1.1-py3.4.egg
.
File metadata
- Download URL: Flask_Slack-0.1.1-py3.4.egg
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8af05adbbb9b871dba1e35e9ae01a25f1926955da5b73fef8c1bd6d18fed01c6 |
|
MD5 | 0444fb64574f272da0dbbcfdabced55e |
|
BLAKE2b-256 | 5bb6ad1aa22e81c84d9fa889769dedd022a961021884e430a5d894e076d54fea |