Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

slackevent-responder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slackevent-responder

ASGI adapter for Slack Events API

  • 0.1.0
  • PyPI
  • Socket score

Maintainers
1

SlackEvent Responder

Test Status codecov GitHub license

Introduction

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 :)

Installation

pip install slackevent-responder

Setup Slack App with Event Subscription

Follow the official document :)

Examples

Hello world using responder

import responder
from slackevent_responder import SlackEventApp

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

@slack_events_app.on("reaction_added")
def reaction_added(event_data):
    event = event_data["event"]
    emoji = event["reaction"]
    print(emoji)

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

api.run(port=3000)

More examples can be found here.

Change Logs

v0.1.0 (2020-01-17)

  • Initial Release 🎉

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc