Skip to main content

ASGI adapter for Slack Events API

Project description

SlackEvent Responder

Test Status codecov GitHub license


The SlackEvents Responder is an ASGI adapter for Slack’s Events API based on the Starlette ASGI framework and works well with the Responder.

This library provides event subscription interface, just like Flask based Slack Events API adapter, it would be easy to switch from it.

Oh, one more point, this library can handle both sync and async function for event callback :)


pip install slackevent-responder

Setup Slack App with Event Subscription

Follow the official document :)


Hello world using responder

import responder
from slackevent_responder import SlackEventApp

slack_events_app = SlackEventApp(
    path="/events", slack_signing_secret=SLACK_SIGNING_SECRET

def reaction_added(event_data):
    event = event_data["event"]
    emoji = event["reaction"]

api = responder.API()
api.mount('/slack', slack_events_app)

More examples can be found here.

Change Logs

v0.1.0 (2020-01-17)

  • Initial Release 🎉

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 slackevent-responder, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size slackevent_responder-0.1.0-py3-none-any.whl (8.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size slackevent_responder-0.1.0.tar.gz (5.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page