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

Uploaded Source

Built Distributions

Flask_Slack-0.1.3-py3.4.egg (4.7 kB view details)

Uploaded Source

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

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for Flask-Slack-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c0f970ef5813b31ad482d17688affdde9365eb15c52dcbd8c1f35e4edb5f9ce8
MD5 d2f4d3f15a8395453bc6102fec8f24c6
BLAKE2b-256 f6541c4eaadc16a6278ccd5e283af5a3b8ef0a968ac665135358c06b1ce7c9fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_Slack-0.1.3-py3.4.egg
Algorithm Hash digest
SHA256 6f2e4730be0ec2251036f855737fdbda8778ca92119238128aa3d9f5b84314cb
MD5 57c8fa199ed5623d5b24767bd055d01d
BLAKE2b-256 c2fae4cbd60c5c41a27f8bd1615fcb9a18ff02c26ef490176792ede5e0c38e80

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask_Slack-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b891d7aa3db9fc030f76f57b127aa08697ccda84f67f85a4c67fa124bcc7ccd6
MD5 8c09bfbb5eaddce3e370175eaff863ed
BLAKE2b-256 f07302a0e2bf4a3b4335bc49a26a76bec04f6add7b0bb009a53d0e82a5269973

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