Skip to main content

Simple notification tool for multi-tasking developers

Project description

MeerkatIO Documentation

Introduction

Welcome to the MeerkatIO documentation. MeerkatIO is a powerful command line interface (CLI) and Python module designed to help developers step away from their computer while their code is running.

Meerkat Python SDK

Installation

# PyPi
$ pip3 install meerkatio

Authenticating

After creating an account at meerkat.io you will be given a unique token which can be used to authenticate with the SDK. Your Meerkat token can either be set in your environment with the MEERKAT_TOKEN environmental variable or in the ~/.meerkat file in your user’s home directory. No authentication is required to use the free Ping feature of MeerkatIO.

# Environment
$ export MEERKAT_TOKEN=token

# Cache File
$ echo "token" > ~/.meerkat

Code Example

import meerkat

# Ping when script gets to checkpoint
meerkat.ping()

# Send a confirmation a function has run
output = build_model()
meerkat.email(f"""
	Send a multi-line email with the output of a function:
	{output}
""")

# Send SMS message when the script is finished
%sms "Script completed!"

Jupyter Notebook Example

%load_ext meerkat

# Ping when cell hits a debug checkpoint
%ping

# Send a confirmation that a cell has run
output = build_model()
%email f"""
	Send a multi-line email with the output of a function:
	{output}
"""

# Send SMS message when the cell reaches the end
%sms "Cell completed!"

MeerkatIO CLI Tool

Installation

# PyPi
$ pip3 install meerkatio

Authenticating

After creating an account at MeerkatIO you can use the same account credentials to authenticate the CLI, giving you access to the full suite of MeerkatIO services. No authentication is required to use the free Ping feature of MeerkatIO.

$ meerkat login

CLI Examples

All users have access to the ping alert feature which will generate a sound when the below command is run.

$ meerkat ping
$ meerkat email "Bash script output: $1"
$ meerkat sms "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


Download files

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

Source Distribution

meerkatio-1.7.tar.gz (63.7 kB view details)

Uploaded Source

Built Distribution

meerkatio-1.7-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

Details for the file meerkatio-1.7.tar.gz.

File metadata

  • Download URL: meerkatio-1.7.tar.gz
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for meerkatio-1.7.tar.gz
Algorithm Hash digest
SHA256 cb2fbe8fb7f3e35ce7581534f0e32b40a0558cee8f88364ea2bed0e97e7faa90
MD5 5d27fc81fb85456af60c630a3a3bbf5e
BLAKE2b-256 c10d6d0917342d95bda478dfc63a2e9bb5ec84d0da4705c41a401ba4d06ea20c

See more details on using hashes here.

File details

Details for the file meerkatio-1.7-py3-none-any.whl.

File metadata

  • Download URL: meerkatio-1.7-py3-none-any.whl
  • Upload date:
  • Size: 50.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.4

File hashes

Hashes for meerkatio-1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 88a531f01e8a5a4e0ab2a0f33bbcd108d4e90c641ec366e161fe162b2e6738c2
MD5 6052dd932b35e3d24814bf6d495c1808
BLAKE2b-256 978cd875185129b9f65a08da9701dad0a011d0dc52c3d00557bb36e9e9544034

See more details on using hashes here.

Supported by

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