skillfed

slackeventsapi

Python Slack Events API adapter for Flask

slackeventsapi v3.0.3 74.1K downloads/30d#14,880 on PyPI340
Permissive license MIT Active released

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 slackeventsapi

uv

uv add slackeventsapi

poetry

poetry add slackeventsapi

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Communications :: ChatTopic :: Office/BusinessTopic :: System :: Networking

Tags

slack events api adapterslack event listener pythonreceive slack eventsslack event emitterslack webhook handlerslack event subscriptionslack bot event processing
slack-integrationevent-drivenwebhook-handler

More Networking packages