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
File details
Details for the file slack_invoker-0.1.4.tar.gz
.
File metadata
- Download URL: slack_invoker-0.1.4.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac38e48ec9773ac37f5fbd56898f95449c3390a23053088b700dcf6dd8dd0203 |
|
MD5 | 8db18a2562f1111068122c34d9162309 |
|
BLAKE2b-256 | 8dcb0d1fbcea826c59839c4e63a4179e23d63ea914caf3440be32d00ff0cb584 |
File details
Details for the file slack_invoker-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: slack_invoker-0.1.4-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8ff9cc428cb9a5db0f7afb25fdefe20ab2ad6459baa8d7037dd6ffbf795a222 |
|
MD5 | 92b1473441ca7f74caf410bfdd70dcca |
|
BLAKE2b-256 | 49e03de3f7f37eb2695b2e5894a0969b22369270e7253b176cee67f1f3915665 |