py_slack
basic webhook messages, want interactivity next
CLI
python3 send_hook.py https://hook_url/xxxxx/xxxx string_of_txt
In Code
In practice, I use this to send JSONs of Python objects. Here's how to use it in code:
from send_hook import send_msg_hook
send_hook_msg(hook_url, msg, format_type)
#hook_url expects a string url with the appropriate protocol at the beginning, for example http:// or https://
#msg expects either a dictionary or a string
#format_type defaults to 'snippet', but can be set to 'plain'
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py_slack-0.0.0.tar.gz
(1.8 kB
view details)
File details
Details for the file py_slack-0.0.0.tar.gz.
File metadata
- Download URL: py_slack-0.0.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a66e7b42e2c024e4d4f01668f7093e74e7eb757ae04c3e49c470b5002cd4b33
|
|
| MD5 |
8a358decbebbdc167fe74ecf8b8fc962
|
|
| BLAKE2b-256 |
5578ca29365450e73183a512867f2ea80c7d16da42b6c9b3f9346bb8aeb3eff8
|