Invoke Python functions from Slack
Project description
slack_invoker
Invoke Python functions from Slack
Installation
pip3 install slack_invoker
Using the library
slack_invoker
currently only supports the creation of Slack bot users via the RTM API.
The sample_bot shows how you can set up a simple bot user which accepts messages
when it is mentioned, parses the messages using an
argparse
argument parser, passes these
arguments to a Python function, and displays the result in Slack.
The Slack documentation has more information on how to create a bot user.
The sample bot requires you to export your Bot User OAuth Access Token
(provided on
https://api.slack.com once you create the bot user) as the
SLACK_BOT_USER_ACCESS_TOKEN
environment variable.
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
Built Distribution
Hashes for slack_invoker-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1a67e8d40e7174085ebc04b7322c6ec958b93dfbaf527d976a953f5683e2d59 |
|
MD5 | 6d24b012f1ee0e7091fd54bf08fe8675 |
|
BLAKE2b-256 | 9990c3e41f165206d9e642dc10d369aca8f24e1686fb192be0bafc7ca140e5db |