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 details)

Uploaded Source

Built Distributions

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

Uploaded Python 2 Python 3

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

Uploaded Source

File details

Details for the file Flask-Slack-0.1.2.tar.gz.

File metadata

File hashes

Hashes for Flask-Slack-0.1.2.tar.gz
Algorithm Hash digest
SHA256 21b77309c83c6ded0061a37076505171ba3449d3f57e442a895c0ebd79bf7e27
MD5 a0601d111c285052504e4dc4ab9cc1c4
BLAKE2b-256 03507f0e245d52577cc31fc27b188101db0348943e84bc70df0e896f00235b74

See more details on using hashes here.

File details

Details for the file Flask_Slack-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Flask_Slack-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f383a8c1cf8ac57cc2abef9c2aed5f9fbf0dcc372f0c1a8e99e006f2ee35d8b9
MD5 fa1564657c4b1a36d65f9f4c851cbe80
BLAKE2b-256 b73b5420e888e90ec7fc12c98c565327fb154b8ad927ce6ec9ad2a9e29f8e757

See more details on using hashes here.

File details

Details for the file Flask_Slack-0.1.2-py2.7.egg.

File metadata

File hashes

Hashes for Flask_Slack-0.1.2-py2.7.egg
Algorithm Hash digest
SHA256 2093995895e7eaf27800458689e0b08cd6384aae637ee53d273c7f920409aa01
MD5 9874373a478a11346c7664c2774e68c6
BLAKE2b-256 819debb497d1fbb54c9840d57008f4ccf3fee1bdc3bdd0172db0cd18bbad2a8b

See more details on using hashes here.

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