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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scora-notify-0.7.0.tar.gz.
File metadata
- Download URL: scora-notify-0.7.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a16d79b1abc5c96e1655198944aaaf58bd7378332f2d92f91d83a8d2d00c8b0
|
|
| MD5 |
23a6281c710add0598a89a2e9c1fffbc
|
|
| BLAKE2b-256 |
0f00756c9d4e6638d54ad4a7fb7d095bfde4671243bd33d1112fe9a63ee3ce13
|
File details
Details for the file scora_notify-0.7.0-py3-none-any.whl.
File metadata
- Download URL: scora_notify-0.7.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76a0f4e21d4f036962050428dc6fc8f0b12e844b459b382650ce6784e3675939
|
|
| MD5 |
9e123ed2ac2584d1b7f222ab625f1aff
|
|
| BLAKE2b-256 |
3b1429eeca458994c92199b7bf50cf296fcd740295c5e5958ca9be69e81ad691
|