Skip to main content

Slack extension for Flask.

Project description

Build Status Coverage Status PyPI Version Downloads

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.

Files for Flask-Slack, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size Flask_Slack-0.1.4-py2.py3-none-any.whl (3.4 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size Flask_Slack-0.1.4-py3.4.egg (1.8 kB) File type Egg Python version 3.4 Upload date Hashes View
Filename, size Flask-Slack-0.1.4.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page