Slack <3 Python
Accomplish more while writing less code with the Python SDK for Slack
Good news: the Slack Python SDK v2 is now available to help you build Slack apps faster with less complexity.
The updated Python SDK, which supports Python 3, gives you access to new features — like asynchronous support for real-time updates to your app, or type hints and return types for quick, accurate coding.
For Python 2.7, we’ll continue basic support through the end of the year with the former Python SDK v1.
Slack’s WebClient and RTMClient are now split in two, so your app no longer has to download or import the code it won’t be using.
WebClient — which enables you to send rich Slack messages through HTTP-based methods — now includes connection pooling to improve request performance. Built-in Slack API Methods, like new doc strings and argument type hints, minimize context-switching between your code editor and documentation. Also, all public methods now require keyword-only arguments, for more resilient apps that are future proof.
RTMClient, a WebSocket connection for streaming Slack events, is now modeled against an event-based architecture — which is the simplest, most efficient way to build apps that respond to activities in Slack. With RTMClient, you can subscribe to only the events that matter to you.
If you’re new to building apps on Slack, get started with the tutorial in under 10 minutes.
If you’re using Python SDK v1, you’ll need to update your app by the end of this year, at which time we’ll discontinue new feature updates and support. Visit the migration guide for more information, and dive deeper by signing up for our Python SDK virtual office hours.