Skip to main content

Send users notifications through various platforms

Project description

logo

Notify

Sending mails and teams messages in a smart way. This project makes it easy to send basic messages through Teams or Email.

Installation


pip install zyppnotify

Notify Mail

When using the NotifyMail class, the environment variables EMAIL_USER and EMAIL_PW need to be set. The initialization of this class will return an error if one of thes variables is not set.

from notify import NotifyMail, NotifyTeams

# versturen van een basis bericht met onderwerp en tekst
mail = NotifyMail(to="reveiver@domain.com",
                  subject="Notify me!",
                  message="This is a test message, send through the notify package")

mail.send_email()

Notify Teams

from notify import NotifyTeams
from notify.utils import import_sample_dfs

webhook = ("REPLACE_ME")

teams = NotifyTeams(webhook=webhook)

# versturen van een basis bericht met onderwerp en tekst
teams.basic_message(title="Notify me!", 
                    message="This is a test message, send through the notify package")

# versturen van een uitgebreid rapport over dataframes.
dfs = import_sample_dfs()
teams.basic_message(title="Notify me!",
                    message="This is optional",
                    buttons={"button_name": "https://www.my_link.nl"},
                    dfs=dfs) #  creates a report on the dataframes processed.

Project details


Download files

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

Files for zyppnotify, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size zyppnotify-0.1.0.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page