Primitive Slack CLI
Project description
slack-primitive-cli
slack-primitive-cli
can execute Slack web api methods from command line.
Command line argument is correspont to web api arguments, so slack-primitive-cli
is primitive.
Requirements
- Python 3.6+
Install
$ pip install slack-primitive-cli
https://pypi.org/project/slack-primitive-cli/
Usage
Sending a message
$ slackcli chat.postMessage --token xoxb-XXXXXXX --channel "#random" --text hello
$ export SLACK_API_TOKEN=xoxb-XXXXXXX
$ slackcli chat.postMessage --channel "#random" --text hello
Uploading files
$ slackcli files.upload --channels "#random" --file foo.txt
Supported web api methods.
slack-primitive-cli
supports a few web api methods.
Additional
Shell Completion
slack-primitive-cli
depends on click, so slack-primitive-cli
can provide tab completion.
Bash, Zsh, and Fish are supported
In order to activate shell completion, you need to execute the following script.
$ eval "$(_SLACKCLI_COMPLETE=source slackcli)"
See here for details.
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
Built Distribution
Close
Hashes for slack-primitive-cli-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27dee8641e02efdd97e5af4acd8d1185a784ddc84acab696f13b0adaec6e8cf1 |
|
MD5 | c6a6219591a383ba5a0e4f1648d4f1cb |
|
BLAKE2b-256 | c33851207ff663eed6b43565961c5b2f5890fc8bee4d7c7a4655823126741d84 |
Close
Hashes for slack_primitive_cli-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f53cc4b1c21d57bfcf606cf68919f9b2702df455fc3e6a00673cfc5d6ca18a9d |
|
MD5 | 739ca67e3b4d748440a34cd06c42b99b |
|
BLAKE2b-256 | 732054c3c6dc90ccf54de9d4605675e47d75f0692be0d490bcac2d93abe6553b |