Simple internal Slack API wrapper
Project description
ritdu-slacker
pip installable bin to interact with the Ringier SA internal interface for slack.
Motivation
- Single implementation of a wrapper around our internal slack interface.
Installation
$ pip install ritdu-slacker
Usage
To send a message to a slack channel from within a thread:
$ ritdu-slacker message --workspace "${SLACK_WORKSPACE}" --channel "${SLACK_CHANNEL//#}" --text "Update in progress" --thread-uuid "${thread_uuid}" --thread-broadcast
To replace a message send a new one with the same message-uuid:
$ ritdu-slacker message --workspace "${SLACK_WORKSPACE}" --channel "${SLACK_CHANNEL//#}" --text "Update complete!" --message-uuid "${message_uuid}"
To send a message and file to a thread in a slack channel:
$ ritdu-slacker file --workspace "${SLACK_WORKSPACE}" --channel "${SLACK_CHANNEL//#}" --text "Oops!" --file "/tmp/errorlog.txt" --thread-uuid "${thread_uuid}"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ritdu-slacker-0.0.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for ritdu_slacker-0.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02b36719a29a334e930ace6eab7bc3d33764bde868ffb97e9b35d97d116ea82c |
|
MD5 | 348ea64de96a96f99b0b097d131e6ca5 |
|
BLAKE2b-256 | a2c2f2ca7661223895466dd6bf79229ba27e4dec8c4e72515c8133bcf7b0e464 |