Personal notification and debug tool for multi-tasking software developers
Project description
MeerkatIO Python Package
Introduction
MeerkatIO is the personal notification platform for software engineers and data scientists. Stop watching your code run and reclaim time in your day! Use this package to trigger personal notifications when your long running build or test processes finish, or to log output for personal debugging to an external communication channel.
Get started with just 2 lines of code!
Installation
$ pip3 install meerkatio
Authenticating
No account or authentication is required to use the Ping feature of MeerkatIO, however all other communication channels can be enabled easily 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:
# Option 1: Environmental Variable
$ export MEERKAT_TOKEN=token
# Option 2: Cache File
$ echo "token" > ~/.meerkat
Code Examples
import meerkat
# Ping when script gets to checkpoint
meerkat.ping()
# Send a confirmation a function has run
output = build_model()
meerkat.email(output)
# Send Slack message to document model performance
perf = get_model_performance(output)
meerkat.slack(perf)
# Send SMS message when the script is finished
meerkat.sms("Script completed!")
Jupyter Notebook Example
import meerkat
# Ping when cell hits a debug checkpoint
%ping
# Send a confirmation that a cell has run
output = build_model()
%email output
# Send Slack message to document model performance
perf = get_model_performance(output)
%slack perf
# Send SMS message when the cell reaches the end
%sms "Cell completed!"
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"
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
File details
Details for the file meerkatio-1.17.tar.gz
.
File metadata
- Download URL: meerkatio-1.17.tar.gz
- Upload date:
- Size: 64.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc294047b100d714d714e7b52b5f330da23e6d1d5f4825861afbeb4b78ff21b2 |
|
MD5 | b0b22786b0290a842351fd467c9840a5 |
|
BLAKE2b-256 | 90ee361730343e67ca665cc035fde674f01c4bbf1adcb0aff9059441fa93ff3a |
File details
Details for the file meerkatio-1.17-py3-none-any.whl
.
File metadata
- Download URL: meerkatio-1.17-py3-none-any.whl
- Upload date:
- Size: 50.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84d1f0bb9385c94d15c7cc68f65680a371e284bbf94be64c97b55f4285a5631a |
|
MD5 | 690a3c5e6825f2c6bcd28992a60eb18b |
|
BLAKE2b-256 | bd137430f456b544906f0a03061231bcbda3c8c9deaff72fa71c7d6f28d66389 |