MeerkatIO Python Package
![Downloads](https://static.pepy.tech/badge/meerkatio)
Introduction
MeerkatIO is the personal notification platform for software engineers and data scientists that allows you to use the notification channels that fit your workflow. This one package immediately opens the door to any notification method you need to save time in your day, integrating with all of the built in tools already at your fingertips.
Get started with just 2 lines of code!
Available Notification Channels
The MeerkatIO Python package supports the following notification channels:
- Ping
- System
- Slack Direct Message
- Microsoft Teams
- Google Chat
- SMS
- Email
Installation
$ pip3 install meerkatio
Authenticating
No account or authentication is required to use the Ping or System notifications, and all other communication channels can be easily enabled with a MeerkatIO Account or through the MeerkatIO Command Line Interface tool.
CLI Account Registration
This package provides a convenient way to get up and running. The register
command will prompt you for a username and password to start your free account, and on success your environment will be set up for you so you can skip the Authentication Token Setup steps.
$ meerkat register
Authentication Token Setup
Using your username and password from MeerkatIO:
$ meerkat login
Or manually set the MeerkatIO token with one of the following examples:
$ export MEERKAT_TOKEN=token
$ echo "token" > ~/.meerkat
Code Examples
import meerkat
meerkat.ping()
output = build_model()
meerkat.email(output)
perf = get_model_performance(output)
meerkat.slack(perf)
meerkat.sms("Script completed!")
Jupyter Notebook Example
import meerkat
%ping
output = build_model()
%email output
perf = get_model_performance(output)
%slack perf
%sms "Cell completed!"
![MeerkatIO Jupyter Notebook personal notification example alerting options](docs/jupyter_example.png)
MeerkatIO CLI Tool
Access all of the same communication methods from your command prompt to integrate with any workflow.
$ meerkat ping
$ meerkat email "Bash script output: $1"
$ meerkat sms "Firmware build completed."
$ meerkat slack "Bash script complete"
Here is an example of how to use Meerkat with any script running from a terminal in order to ping youself when the script is finished running.
$ make build && meerkat email "Build succeeded" || meerkat sms "Build failed"