Skip to main content

A Python module to access Slack's API from user-space, to circumvent all the artificial API limitations put in by greedy Salesforce. 🤑

Project description

slackish

A Python module to access Slack's API from user-space, to circumvent all the artificial API limitations put in by greedy Salesforce. 🤑

Why slackish?

While there exists an official Slack client for Python, Salesforce has introduced arbitrary restrictions on which API calls can be made based on different plans. This puts developers in a challenging position, as there's uncertainty regarding which API calls can be relied upon when building applications for others. slackish aims to provide a more reliable, robust, and less selective base for developers to build upon.

For example, invites.py shows you how to retrieve the list of invitations for your workspace, a feature that is only available to the API for Enterprise Grid customers.

Installation

pip install slackish

Usage

Here's a basic example of how to use slackish:

import slackish

session = slackish.login_slack(
    workspace="YOUR_WORKSPACE_NAME_OR_URL",
    email="YOUR_EMAIL",
    password="YOUR_PASSWORD"
)

print("Slack workspace: ", session.workspace)
print("Slack cookie:    ", session.auth_cookie)
print("Slack token:     ", session.auth_token)

Replace YOUR_WORKSPACE_NAME_OR_URL, YOUR_EMAIL, and YOUR_PASSWORD with your actual credentials.

Features

  • Bypass Salesforce's artificial API limitations.
  • Reliable and consistent access to Slack's API.
  • User-friendly interface for easy integration.

Contributing

We welcome contributions! Please check out our GitHub repository for more details.

The next milestone is to wrap the functionality in a sub-class requests.Session() that automatically injects the authentication cookie/token when appropriate.

Disclaimer

Please ensure you're adhering to Slack's Terms of Service when using this package. The maintainers of slackish are not responsible for any misuse or violation of terms.

License

This project is licensed under The Unlicense. It means you can do anything you want with this, for whatever purposes, you don't have to credit me, this project, or anything.

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

slackish-0.4.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

slackish-0.4.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file slackish-0.4.0.tar.gz.

File metadata

  • Download URL: slackish-0.4.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.3 Darwin/22.1.0

File hashes

Hashes for slackish-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5194ce9af82d5c083e785c35cde41dd0ecc5e4145410a5867da00bf686f4f133
MD5 3d3a962f6532ac23ccc3aa41bc22eea3
BLAKE2b-256 6887cc329b2373d3a64a1043d9de9e5f8e44f962a49ea48c4fcf58c35c847cbb

See more details on using hashes here.

File details

Details for the file slackish-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: slackish-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.3 Darwin/22.1.0

File hashes

Hashes for slackish-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb935101d064ddf429737d39d3d155f13d72aaeff69cf2327d68c8195b076062
MD5 2c2d526d274524796db3939f296663f5
BLAKE2b-256 cb0b3d8a5629c76141ccefab3937387ca192ae01ef106876e942093ff54e372d

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