slack-sdk
The Slack API Platform SDK for Python
Decision gist · record as of 2026-08-14
Yes. The SDK is the official, actively maintained Slack client for Python with zero runtime dependencies, permissive licensing, and broad platform API coverage. Install it if you need to integrate Python applications with Slack—whether for bots, notifications, or custom workflows. No known security vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.7 or above; SLACK_BOT_TOKEN environment variable must be set with a valid Slack bot token.
- Low friction—pure Python wheel with no runtime dependencies.
- Active maintenance with a release 45 days ago and 4009 repository stars.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2026-06-30 (45 days) · last repo commit 2026-08-13 · 4,009 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 105,033,359 downloads/mo, #330 on PyPI
Alternatives
Verify before relying
pip install slack_sdk
import os
from slack_sdk import WebClient
client = WebClient(token=os.environ['SLACK_BOT_TOKEN'])
response = client.chat_postMessage(channel='#random', text='Hello world!')- Whether AIOHttp is automatically installed for AsyncWebClient or must be added separately as an optional dependency.
- Performance characteristics when handling high-volume message posting or file uploads.
- Specific rate-limit handling behavior and retry strategies built into the SDK.
What it is and what it does
The Slack Python SDK is the official client library for interacting with Slack's platform APIs. It provides modular packages for different Slack capabilities—Web API for standard operations, webhooks for incoming messages, Socket Mode for real-time bidirectional communication, OAuth for authentication flows, and utilities for verifying requests and constructing Block Kit UI components. The SDK supports both synchronous and asynchronous usage patterns, with async operations requiring AIOHttp.
Developers use it to build custom Slack apps, integrate third-party services into Slack workflows, send notifications, upload files, manage audit logs, and implement interactive bots. It handles the HTTP communication, error responses, and authentication details, letting you focus on app logic. The library is actively maintained, supports Python 3.7 through 3.14, and has no external runtime dependencies for basic synchronous usage.
Use it for
- Send automated notifications or alerts from your application to Slack channels.
- Build a chatbot that listens for messages and responds using Socket Mode or RTM API.
- Implement OAuth-based Slack app installation flows for multi-workspace deployments.
- Upload files or logs to Slack channels programmatically as part of CI/CD or monitoring workflows.
- Verify incoming webhook signatures to ensure requests genuinely come from Slack servers.
- Construct and send interactive messages with Block Kit buttons, menus, and form elements.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The SDK is the official, actively maintained Slack client for Python with zero runtime dependencies, permissive licensing, and broad platform API coverage. Install it if you need to integrate Python applications with Slack—whether for bots, notifications, or custom workflows. No known security vulnerabilities.
Install
slack-sdk on PyPI
Before you install
Low friction—pure Python wheel with no runtime dependencies. Active maintenance with a release 45 days ago and 4009 repository stars.
Requires Python 3.7 or above; SLACK_BOT_TOKEN environment variable must be set with a valid Slack bot token.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install slack_sdk
import os
from slack_sdk import WebClient
client = WebClient(token=os.environ['SLACK_BOT_TOKEN'])
response = client.chat_postMessage(channel='#random', text='Hello world!')
Verify before relying
- Whether AIOHttp is automatically installed for AsyncWebClient or must be added separately as an optional dependency.
- Performance characteristics when handling high-volume message posting or file uploads.
- Specific rate-limit handling behavior and retry strategies built into the SDK.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 45 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 105,033,359 / month, #330 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Communications :: ChatTopic :: Office/BusinessTopic :: System :: Networking |
Evidence: slack_sdk-3.43.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “slack bot sdk”
- slack-sdkProvides Python bindings for Slack's Web API, webhooks, Socket Mode,…
- slackclientProvides Python interfaces to Slack's Web API and Real Time Messaging…
- azure-mgmt-botserviceProvides Python bindings to manage Azure Bot Service resources—bots,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
psutil retrieves real-time information about running processes and system resources (CPU, memory, disks, network, sensors) across multiple operating systems, enabling system monitoring, process profiling, and resource management.
pyOpenSSL wraps OpenSSL's SSL/TLS functionality for Python, providing high-level connection objects and certificate handling through a Python-friendly interface around OpenSSL's cryptographic operations.
uvloop is a drop-in replacement for Python's built-in asyncio event loop, implemented in Cython and using libuv, that accelerates async I/O operations.
execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.
However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…
PyZMQ provides Python bindings for ZeroMQ (ØMQ), a lightweight messaging library that enables fast, asynchronous communication between distributed processes and applications.
See also slackblocks · slackclient · slack-bolt · slackeventsapi · slackweb · slack-discovery-sdk · apache-airflow-providers-slack · pyblock-builder · mattermostwrapper · RtmAPI