A Python adapter for the Slack Events API, built on Flask. It handles event verification, parsing, and dispatching for incoming Slack events. The current version is 3.0.3, requiring Python >=3.6 and Flask 2.x. Releases are irregular as the library is in maintenance mode.
pip install slackeventsapiVerified import paths — ran on the pinned version, not inferred.
Minimal Flask app using SlackEventAdapter to respond to app_mention events.
Upgrade Python to 3.6+ and Flask to 2.x.
Migrate to slack_bolt: https://github.com/slackapi/bolt-python
Offload processing to a background thread or queue. See GitHub issue #84.
Update your app to use Signing Secret from Slack app settings. Pass signing_secret instead of verification_token.
Run: pip uninstall slackeventsapi && pip install slackeventsapi. If still fails, check the package version: import slackeventsapi; print(slackeventsapi.__version__)
Pass your Slack app's signing secret: SlackEventAdapter('your_signing_secret', '/events', app)Double-check SLACK_SIGNING_SECRET environment variable. Ensure server time is accurate (NTP). If behind a proxy, forward original headers.
Ensure your route returns a plain text response with the challenge value. Using SlackEventAdapter automatically handles it.