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)
Built Distribution
Close
Hashes for scora_notify-0.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76a0f4e21d4f036962050428dc6fc8f0b12e844b459b382650ce6784e3675939 |
|
MD5 | 9e123ed2ac2584d1b7f222ab625f1aff |
|
BLAKE2b-256 | 3b1429eeca458994c92199b7bf50cf296fcd740295c5e5958ca9be69e81ad691 |