There was an error while loading. Please reload this page.
This package supports Python 3.6 and higher. We recommend using PyPI to install Python Slack SDK
> $ pip install slack_sdk
Of course, you can always pull the source code directly into your project:
> $ git clone https://github.com/slackapi/python-slack-sdk.git cd python-slack-sdk python3 -m venv .venv source .venv/bin/activate pip install -U pip pip install -e . # install the SDK project into the virtual env
And then, save a few lines of code as ./test.py.
> $ # test.py import sys # Enable debug logging import logging logging.basicConfig(level=logging.DEBUG) # Verify it works from slack_sdk import WebClient client = WebClient() api_response = client.api_test()
You can run the code this way.
> $ python test.py
It’s also good to try on the Python REPL.