Sending Slack Messages
- Install python library
pip install slackinformer
- Export Slack API Key Environment Variable as SLACK_CLIENT_API_KEY
export SLACK_CLIENT_API_KEY=<YOUR_API_KEY>
- Import slackinformer module.
from slackinformer.slackinformer import send_slack_message
- Create content to be sent. For example:
content = "YOLOv3 - Last Mean Average Precision(mAP) - Epoch(" + epoch + "): " + "*" + mAP + "*"
- Create plot path. Suppose plot path is: output/map_epoch_plot.png
img_path = os.path.join("output", "map_epoch_plot.png")
- Send message
send_slack_message(channel="#general", title="Image Title" content, img_path)
Metadata
Release files for slackinformer 0.0.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 | Actions |
|---|---|---|---|---|
| slackinformer-0.0.2.tar.gz | 1.8 kB | Without provenance | Details for slackinformer-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slackinformer-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for slackinformer-0.0.2-py3-none-any.whl |
Total release size: 16.4 kB
Release files / slackinformer-0.0.2.tar.gz
| Download URL | slackinformer-0.0.2.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c04b65218558d6f46c428dbf03bdcc6372d8b58217995408d27b98dc610d38c7
|
|
BLAKE2b-256 checksum How to use checksums |
cc9da0f29915b6ab78851a101810e4cf189a6bb0fae6882ee9c08f67e28c9d57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Release files / slackinformer-0.0.2-py3-none-any.whl
| Download URL | slackinformer-0.0.2-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0667b06ead1da748985f1aac55e129184e11d0c98d399b20c9050195d20b5db
|
|
BLAKE2b-256 checksum How to use checksums |
b2d47b53bfd96b8b8f8f32b7987b19f7eadc1b1ba833782a72222ae5e1bac9ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
|
Security for slackinformer 0.0.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.