slackeventsapi
Python Slack Events API adapter for Flask
What it is and what it does
SlackEventsAPI is a Python adapter that sits between Slack's Events API and your application, handling the mechanics of receiving and parsing incoming events. It uses an event emitter framework (pyee) to let you register listener functions for specific event types—when Slack sends an event, the adapter routes it to your registered handler. The library includes built-in Flask integration, so you can either use its embedded server or bind it to an existing Flask app.
The package handles URL verification automatically when you first configure your Slack app, and it abstracts away common tasks like signature verification. However, the maintainers note an important caveat: event acknowledgement may require threading for stability in production. The project is actively maintained but officially recommends Bolt for Python as the preferred choice for new Slack app development, as Bolt covers a broader set of Slack platform features.
Use it for:
- Build a Slack bot that reacts to user actions like emoji reactions or message posts by attaching event listeners.
- Integrate Slack notifications into a Python web service by receiving Events API webhooks and triggering downstream workflows.
- Process Slack team events (user joins, channel creation) and sync them with an external database or logging system.
- Prototype Slack app event handling during development before committing to a larger framework.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Receives and parses events from Slack's Events API using an event emitter pattern, allowing you to attach listener functions to handle Slack events in Python.
Yes, if you need a lightweight, low-friction way to receive and handle Slack events in Python and are comfortable with the threading caveat for event acknowledgement. No, if you are starting a new production Slack app—the maintainers explicitly recommend Bolt for Python instead. Suitable for small-scale integrations, prototypes, or legacy projects already using this adapter.
Install
slackeventsapi on PyPI
pip
pip install slackeventsapiuv
uv add slackeventsapipoetry
poetry add slackeventsapiInstalling slackeventsapi
Before you install
Low friction installation with only two runtime dependencies (flask and pyee). Actively maintained as of June 2026, though the maintainers recommend Bolt for Python as the preferred library for new projects.
License in practice
MIT license permits commercial and private use with minimal restrictions; you must include a copy of the license and copyright notice.
Quickstart
pip install slackeventsapi
from slackeventsapi import SlackEventAdapter
import os
slack_events_adapter = SlackEventAdapter(
os.environ["SLACK_SIGNING_SECRET"],
endpoint="/slack/events"
)
@slack_events_adapter.on("reaction_added")
def handle_reaction(event_data):
print(event_data["event"]["reaction"])
slack_events_adapter.start(port=3000)
Requires SLACK_SIGNING_SECRET environment variable and a Slack app with Event Subscriptions enabled; the documentation notes that stable event acknowledgement may require threading.
Verify before relying
- Whether threading is required for your use case or only for certain event types
- Current adoption rate and whether Bolt for Python is now the de facto standard
- Performance characteristics under high event volume
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — flask, pyee |
| Maintenance | actively maintained — 708 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 74,063/month — #14,880 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: slackeventsapi-3.0.3-py2.py3-none-any.whl
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
slack-boltBolt for Python is a framework for building…
permissive · top 5,000 on PyPI
slackwebSends messages to Slack channels via incoming…
permissive · top 15,000 on PyPI
slack-sdkProvides Python bindings for Slack's Web API,…
permissive · top 1,000 on PyPI
slack-discovery-sdkProvides Python bindings to Slack's Discovery…
unclear · top 15,000 on PyPI
pyeepyee provides an EventEmitter class for Python…
permissive · top 1,000 on PyPI
slackerSlacker is a Python client library for the…
permissive · top 15,000 on PyPI
slackclientProvides Python interfaces to Slack's Web API…
permissive · top 5,000 on PyPI
pymitterAn event emitter library that lets you register…
permissive · top 15,000 on PyPI
apache-airflow-providers-slackIntegrates Apache Airflow with Slack, enabling…
permissive · top 5,000 on PyPI
cloudeventsProvides Python primitives to create,…
permissive · top 5,000 on PyPI