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.5.tar.gz (4.6 kB view details)

Uploaded Source

Built Distributions

Flask_Slack-0.1.5-py3.4.egg (8.0 kB view details)

Uploaded Source

Flask_Slack-0.1.5-py2.py3-none-any.whl (5.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for Flask-Slack-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f4b5336d86daae445327a9836df5a3301c2a8d00f97563083d5b1578cd4abce4
MD5 8a40d9b093634967828bda4b44b7097f
BLAKE2b-256 d708f78b6c39d265313e7e235f4813b6763cc2aa00f7fa77744afeb38e9deca7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_Slack-0.1.5-py3.4.egg
Algorithm Hash digest
SHA256 ad5915f3de53c1e6107eb7922d5f82418e9afa98d89ad03c34cc0612adc5acb9
MD5 32b85de87bb717e09fe2603d05270916
BLAKE2b-256 740247b16c6e3ff37b429cf864654a53521b9cdad2662a65e13ab1b3391cfe66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_Slack-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d0720afb35d6e48f1e2f54c2ba9e88c0df757980da686d4810c989ff52572d93
MD5 40743503bb1f3ac30ed1e282bd2f1a68
BLAKE2b-256 66bf605edc383cabea03d5ca6f024c00d6e8767ad93e2fc714ac60404bfdf2e8

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