Skip to main content

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:

  1. siasky for logs sending
  2. use trace to hook into stdout for logging .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

workflow-notification-9.28.2022.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

workflow_notification-9.28.2022-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file workflow-notification-9.28.2022.tar.gz.

File metadata

File hashes

Hashes for workflow-notification-9.28.2022.tar.gz
Algorithm Hash digest
SHA256 26ce8c7a69f12886420ab56f1e75c5082df31524ee4e191881e9c00f0923185d
MD5 23bb7296f11b90f1d138b707e748beec
BLAKE2b-256 60517359669dc001300e79716e171003dc5d9b36f89e24814e2e647584b3e7a9

See more details on using hashes here.

File details

Details for the file workflow_notification-9.28.2022-py3-none-any.whl.

File metadata

File hashes

Hashes for workflow_notification-9.28.2022-py3-none-any.whl
Algorithm Hash digest
SHA256 03134d267624b0e3211c957dfb3a5952848ef48ec7c6d0d4634b87b7fb27361f
MD5 18e9ead8117687da3622987f1f928004
BLAKE2b-256 f7d67d4097e8d1d9bb2e85712b81d3e7ac0e494a4da58510443076dfc319b2ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page