Notify you when a function finished with option to send a email
Project description
Notifier Function Status
This library uses a decorator to show a toast in your screen or send you a email when your function has finished
Requeriments
Please install this packages by yourself depending on your OS:
- Windows:
pip3 install win10toast
- Ubuntu:
apt-get install libnotify-bin
(if don't work try searching how install notify-send for your distro of Linux)
Usage
All that you need to do is use a decorator and some specific parameters, like in the following example:
from notifier import notify
@notify(email='enmanuelmag@cardor.dev')
def your_function():
print('Hello World!')
Parameters
- title: the title of toast notification, by defult is:
Function finished
. - email: the email of user, by defult is:
None
. - webhook_url: the url of webhook to send message to discord channel, by defult is:
None
. - msg: the message of toast notification, by default is:
Your function has finished
. - duration: the time, in seconds, that the nottications will show, by default is
8
. - urgency: the urgency of the notifcation. By defualt is
normal
. The options are:- low.
- normal.
- critical.
Made with ❤️ by Enmanuel Magallanes
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
notify_function-1.1.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file notify_function-1.1.0.tar.gz
.
File metadata
- Download URL: notify_function-1.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d07c8a51553fd59cf0e5e6af5ec996f05faeb09ab0ceb3fed96cfc3051973a68 |
|
MD5 | 527bc749e135644ba1f8a43104ec4f59 |
|
BLAKE2b-256 | 326bdba1cc4ebbbf25c6ab2bbd47b5917b9b505bf97ec5b2dc39e45d8977aaf1 |
File details
Details for the file notify_function-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: notify_function-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9840cb360a701579489fe34ff3ad713d4f6865685a44c0111ee041fbe4d4de6f |
|
MD5 | 158414b24d15b8cc59f388e4c118cc5c |
|
BLAKE2b-256 | 9c0d775604162b9d33faa9f5df74fdcac69555ac893cf0fd99b1436e401a130d |