Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Invoke Python functions from Slack

Project description


Invoke Python functions from Slack


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 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.

Files for slack-invoker, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size slack_invoker-0.1.4-py3-none-any.whl (10.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size slack_invoker-0.1.4.tar.gz (5.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page