Skip to main content

A patched version of slack-sdk to allow the use of slack API without any access tokens creation. This patch uses existing credentials from the installed slack app.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

patched_slack_sdk-0.2.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

patched_slack_sdk-0.2.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file patched_slack_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: patched_slack_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.0 Linux/6.11.0-1015-azure

File hashes

Hashes for patched_slack_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3b946be9896d811a7fb81d5fba5d8ab3b5ef65ae185fa3dd0cdddd4686f048ff
MD5 30ac62d5d795b56ad010da6f546debb5
BLAKE2b-256 7e30f3e1e131c73dac7a69c48dc848c17ef3417fb17ff79d3370d6fe81906f37

See more details on using hashes here.

File details

Details for the file patched_slack_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: patched_slack_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.11.0 Linux/6.11.0-1015-azure

File hashes

Hashes for patched_slack_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09a8cd436ec4d48197190e7e7bcb4ee0c6cb690a9046ed6abbef4083e29414cf
MD5 0f61a61c5abe7fb0763aef2ea830857e
BLAKE2b-256 87d27084ee5e25957aa6750f402d5f3551b543a3bdd7bfd8e14367d3e81e4961

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page