Skip to main content

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)

Source distribution for slack-invoker 0.1.4
File Size Uploaded
slack_invoker-0.1.4.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slack-invoker 0.1.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page