Get notified when your functions finish running
Project description
FuncNotify
Premise:
Sometimes, functions take a long time. I wanted to create something that automatically notifies you when they're completed or of any errors, training ML. The advantage over other decorator nontifiers is that there's an added option to hide your api tokens and emails so they aren't accidentally pushed to a public repo.
This is a super lean ReadMe, check out the github linked here
Installation
$ pip install FuncNotify
Use case
@time_func(dot_env=True, NotifyMethod="Text", cellphone="8001234567")
def wait_func():
do_something()
@time_text
def wait_func2():
do_something()
Both accomplish the same objective of notifying the user after wait_func()
completes, one does so with the phone number saved as a env variable in .env
so it never accidentally gets exposed.
Supported Notify Methods
Platform |
---|
Console Print |
Slack |
Create .env in current working directory and fill out information that you wanna use
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
FuncNotify-1.1.3.tar.gz
(12.0 kB
view hashes)
Built Distribution
FuncNotify-1.1.3-py3-none-any.whl
(15.1 kB
view hashes)
Close
Hashes for FuncNotify-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8080ed46eb0bd1037631a9d03587efc48861819f203f7244b7b6c0ab0fae5f1e |
|
MD5 | d541377f935c88031edd60b45448c553 |
|
BLAKE2b-256 | 38db67d6d6943adbd309571e751ce10ab801c6db2d26368c7a5c6378e818baf9 |