Notify you when a function finished with option to send a email
Project description
Notifier Function Status
This library use a decorator to show a toast in your screen.
Requeriments
Please install this packages by yourself depending you 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 is use a decorator and specific some parameters, next explain it:
Import: import notify
Decorator to use: @notify()
Parameters
- title: the title of toast notification, by defult is: Function finished.
- email: the email of user, 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.
- critial.
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.0.5.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file notify_function-1.0.5.tar.gz
.
File metadata
- Download URL: notify_function-1.0.5.tar.gz
- Upload date:
- Size: 3.3 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 | dd166910c3715a589633f1ac216768415d0fbd115a103d23042dfb2579764b65 |
|
MD5 | 9fcd0daaf4041f5c581692bd194863cf |
|
BLAKE2b-256 | 88dcff5c23ab6b8dbf2893fe2240584e35edf6a951966ad9d652ff0b41e1214b |
File details
Details for the file notify_function-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: notify_function-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.8 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 | 566f10643320893a1faedd0c3320fbd2b04dce2674d15a61d8de5630b61edea5 |
|
MD5 | c65861aeb45be1212f8792c4b7f99940 |
|
BLAKE2b-256 | b09433a7ae0070620c1263d98d4d12754be794cb081d9b2dc6471f86e62f54fe |