Send messages to Slack from command line.
Usage
date | slacker -c slack_channel -t slack_token
The Slack token can be called from an enviroment variable, called SLACK_TOKEN.
You can set SLACK_TOKEN in your ~/.bashrc
# ~/.bashrc
export SLACK_TOKEN="slack_token_string"
date | slacker -c slack_channel
Send message to user:
date | slacker -u user_name
Upload file to channel:
date | slacker -c slack_channel -f image.png
Add sender name and emoji avatar:
date | slacker -n SlackerBot -i :dancer:
Installation
pip install slacker-cli
Tokens
You can either generate test tokens or create a bot user and use its token.
Contributors
Metadata
Release files for slacker-cli 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| slacker-cli-0.4.2.tar.gz | 3.8 kB | Without provenance | Details |
Release files / slacker-cli-0.4.2.tar.gz
| Download URL | slacker-cli-0.4.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8d27f237450b5d5ddcf0eee7d4d8965777c1d5e9b70e7f08f655153eaf6000f
|
|
BLAKE2b-256 checksum How to use checksums |
eec40fb4cdd5df0f02aa217d4a9367d13cbf68e89d98aaa9790e25363a2951ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for slacker-cli 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.