Skip to main content

Slack extension for Flask.

Project description

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.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distributions

Flask_Slack-0.1.2-py2.py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 2 Python 3

Flask_Slack-0.1.2-py2.7.egg (4.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page