Skip to main content

Scora Slack notification lib

Project description

This package implements Slack notification and Mixpanel abstractions to be used in various projects.

This packages uses logging for console outputs.

The Slack notifier can: * Start threads * Update threads * Finish threads

The event tracker can: * Track events * Time events

To time an event, call the time_event method with the desired event_name, and later call track on that same event. The duration between calls will be saved as the “Duration” property.

Development

Build, install, test locally

# build from this source -- considering that dependencies are resolved
rm -rf ./dist/* && python3 -m build

# From another venv -- install
virtualenv -p python3
. ./venv/bin/activate
pip install <REPO_HOME>/dist/scora-notify-0.1.0.tar.gz


# Import and run
from scora_notify import Notify
notify=Notify(slack_token="", slack_channel="", step="", tenant="", project="")

# Import and run
from scora_notify import EventTracker
tracker = src.EventTracker("",project="",tenant="")
tracker.track("event",properties={"prop":1})

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

scora-notify-0.7.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

scora_notify-0.7.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

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