Rewriting the Slack Python SDK
The desire for change
The Slack Python SDK, originally created in 2016, provides a simple HTTP and WebSocket client to help communicate with Slack’s Platform APIs. Web client
In the RFC, the proposed WebClient would be a thin HTTP client wrapper that focused solely on preparing requests and parsing responses from Slack’s Web API. Here’s an example of what this would look like if implemented as suggested:
Inspired by the open-source Ruby Slack SDK by Daniel Doubrovkine, I wanted to abstract away the complex looping that was previously required to respond to events from the RTM API.