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.

Source Distribution

Flask-Slack-0.1.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distributions

Flask_Slack-0.1.4-py3.4.egg (1.8 kB view details)

Uploaded Source

Flask_Slack-0.1.4-py2.py3-none-any.whl (3.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for Flask-Slack-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2c2b6c941b44eaa9d239733632829d02a9fe56073ecc7eb34754dbca6cb0d6d2
MD5 54f5c5fb57f203858764687e8ea1f75f
BLAKE2b-256 99a92cbe7175ab27b34a5dee8dc782dc38886690192dc770a7dcec99b33b8b7a

See more details on using hashes here.

File details

Details for the file Flask_Slack-0.1.4-py3.4.egg.

File metadata

File hashes

Hashes for Flask_Slack-0.1.4-py3.4.egg
Algorithm Hash digest
SHA256 e945a9a56f4d47ca61ec0d9acad6c36be8421e3bcf6cab817451625f70b6fe96
MD5 b0f8388396feaf7b1697ee3593b12a06
BLAKE2b-256 d7ef0f8e45076104abd26eb0acc0ab6d7416aa75dfc8cebad1c664a609b753cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_Slack-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c41c10970d0a590555724e253debd86702812020bbcf627e4591e2a35031ec63
MD5 acb0dd3a45a4455b4e037e327e95d1ba
BLAKE2b-256 1a6fad24e7aba73fe963bfc6b3b8b4566574f66575ad03ebab486fa72fbfa828

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