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-1.0.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for ritdu_slacker-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c69d8d2c4a6df7f1440fa9a92eab1e8a51e0c978b6c1fac52f13a4c2d922449e |
|
MD5 | 34dc9826a3f41f6e2b56717ba539ddfd |
|
BLAKE2b-256 | 2cedc47927f0380978fb1e5d2ddb0a098d3cfc85d2da7d6f7e24373920c40811 |