Patched slack-sdk
This project is not endorsed or authorised in any way by Slack Technologies LLC.
The Slack API is essential for all Slack clients, such as the official desktop app and third-party bots, to interact with and modify the data that shapes the Slack user experience. Authorization is required from all clients to access this API.
Since July 2021, individual user access to the Slack API (excluding bot access) has been granted through a personal token (starting with xoxc-) and a cookie named d. Each Slack Workspace has its unique personal token, while the cookie remains the same across all workspaces.
If you are using the Slack desktop app, these credentials are stored locally on your machine. This modified client extracts them from the app's local storage, allowing their use for purposes beyond those supported by the app itself.
QuickStart
Requirements
- Python <=3.8 - because leveldb is not compatible with a higher version
Installation
pip install patched-slack
Usage
Authentication test
from patched_slack_sdk import PatchedWebClient
client = PatchedWebClient()
print(client.auth_test())
Update slack status
from patched_slack_sdk import PatchedWebClient
client = PatchedWebClient()
client.users_profile_set(
profile={
"status_text": "I'm out of the office",
"status_emoji": ":palm_tree:",
}
)
Contributing
Contributions are always welcome! Please feel free to submit a pull request.
Metadata
Release files for patched-slack-sdk 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| patched_slack_sdk-0.2.2.tar.gz | 16.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| patched_slack_sdk-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.0 kB
Release files / patched_slack_sdk-0.2.2.tar.gz
| Download URL | patched_slack_sdk-0.2.2.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a647e73d5187a8730571ee5cd3f2b7f5e65552cd18459c636e4cf76b80e9b8f6
|
|
BLAKE2b-256 checksum How to use checksums |
55034da0525a1ab38182b939f0c93b4e032834e8f1779ce1adfb5feff3a1d74b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.0 Linux/6.11.0-1015-azure
|
Release files / patched_slack_sdk-0.2.2-py3-none-any.whl
| Download URL | patched_slack_sdk-0.2.2-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4f0aa1f7b31e8d999fcd727ba10a7200f5184836ed842e49ecac27751568459
|
|
BLAKE2b-256 checksum How to use checksums |
bd47482a2fed4efa7ac02809cbdd2949ab0b4394cf09547fcd85933eceebb9f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.0 Linux/6.11.0-1015-azure
|