Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/VeryCB/flask-slack
a Flask extension which makes it easy to interact with Slack slash commands.
https://github.com/VeryCB/flask-slack
Last synced: 11 days ago
JSON representation
a Flask extension which makes it easy to interact with Slack slash commands.
- Host: GitHub
- URL: https://github.com/VeryCB/flask-slack
- Owner: VeryCB
- License: bsd-3-clause
- Created: 2014-09-30T06:14:56.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-04T15:10:56.000Z (almost 9 years ago)
- Last Synced: 2024-10-27T12:14:43.265Z (16 days ago)
- Language: Python
- Homepage: https://pypi.python.org/pypi/Flask-Slack
- Size: 31.3 KB
- Stars: 84
- Watchers: 6
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
|Build Status| |Coverage Status| |PyPI Version| |PyPI 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 `_.. |Build Status| image:: https://travis-ci.org/VeryCB/flask-slack.svg?branch=master
:target: https://travis-ci.org/VeryCB/flask-slack
:alt: Build Status
.. |PyPI Version| image:: https://img.shields.io/pypi/v/Flask-Slack.svg
:target: https://pypi.python.org/pypi/Flask-Slack
:alt: PyPI Version
.. |PyPI Downloads| image:: https://img.shields.io/pypi/dm/Flask-Slack.svg
:target: https://pypi.python.org/pypi/Flask-Slack
:alt: Downloads
.. |Coverage Status| image:: https://img.shields.io/coveralls/VeryCB/flask-slack.svg
:target: https://coveralls.io/r/VeryCB/flask-slack
:alt: Coverage Status