workflow-notification
Project description
workflow-notification
used to send notification and logs to email, groupme and... siasky.
create a file called dev.notification.yaml and include the required variables
notifications:
- groupme:
bot_id: ""
- email:
to: ""
from: ""
smtp_host: ""
smtp_port:
smtp_username: ""
smtp_password: ""
smtp_tls: true
subject: "hello from {{program.notifications}}"
Usage
pip install workflow-notification
from secret_assistant import notification
notification("testing notifications").info().sendmessage().send_mail()
notification("testing notifications").warning().sendmessage().send_mail()
notification("testing notifications").critical().sendmessage().send_mail()
TODO:
- siasky for logs sending
- use trace to hook into stdout for logging .
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file workflow-notification-9.28.2022.tar.gz.
File metadata
- Download URL: workflow-notification-9.28.2022.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ce8c7a69f12886420ab56f1e75c5082df31524ee4e191881e9c00f0923185d
|
|
| MD5 |
23bb7296f11b90f1d138b707e748beec
|
|
| BLAKE2b-256 |
60517359669dc001300e79716e171003dc5d9b36f89e24814e2e647584b3e7a9
|
File details
Details for the file workflow_notification-9.28.2022-py3-none-any.whl.
File metadata
- Download URL: workflow_notification-9.28.2022-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03134d267624b0e3211c957dfb3a5952848ef48ec7c6d0d4634b87b7fb27361f
|
|
| MD5 |
18e9ead8117687da3622987f1f928004
|
|
| BLAKE2b-256 |
f7d67d4097e8d1d9bb2e85712b81d3e7ac0e494a4da58510443076dfc319b2ca
|