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.
Release files for slack-invoker 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| slack_invoker-0.1.4.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| slack_invoker-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:15.6 kB
Release files / slack_invoker-0.1.4.tar.gz
| Download URL | slack_invoker-0.1.4.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac38e48ec9773ac37f5fbd56898f95449c3390a23053088b700dcf6dd8dd0203
|
|
BLAKE2b-256 checksum How to use checksums |
8dcb0d1fbcea826c59839c4e63a4179e23d63ea914caf3440be32d00ff0cb584
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / slack_invoker-0.1.4-py3-none-any.whl
| Download URL | slack_invoker-0.1.4-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8ff9cc428cb9a5db0f7afb25fdefe20ab2ad6459baa8d7037dd6ffbf795a222
|
|
BLAKE2b-256 checksum How to use checksums |
49e03de3f7f37eb2695b2e5894a0969b22369270e7253b176cee67f1f3915665
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|