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'
Release files for py-slack 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_slack-0.0.0.tar.gz | 1.8 kB | Details |
Release files / py_slack-0.0.0.tar.gz
| Download URL | py_slack-0.0.0.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a66e7b42e2c024e4d4f01668f7093e74e7eb757ae04c3e49c470b5002cd4b33
|
|
BLAKE2b-256 checksum How to use checksums |
5578ca29365450e73183a512867f2ea80c7d16da42b6c9b3f9346bb8aeb3eff8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|