Notifier Function Status
This library uses a decorator to show a toast in your screen or send you a email, telegram message or message to discord channel or use a Telegram bot to send you a message when your function has finished.
Usage
There are to methods to use this library:
Decorator
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. - api_token: the api token of your Telegram bot, by defult is:
None. You could use BotFather to create a personal bot. - chat_id: the chat id to send the message, by defult is:
None. If you account is public you could use your username (@username), otherwise you could use the chat id, you'll find here. - 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.
Class (manual call)
In this case you need to create a class and call the instance returned by the constructor, like in the following example:
from notifier import Notifier
notifier = Notifier()
notifier()
Parameters
This parameters are avaible in the class constructor and when you call the instance returned by the constructor.
- title: the title of notification, by defult is:
Manual notify. - msg: the message of notification, by default is:
Check your code. - email: the email of user, by defult is:
None. - api_token: the api token of your Telegram bot, by default is:
None. You could use BotFather to create a personal bot. - chat_id: the chat id to send the message, by defult is:
None. If you account is public you could use your username (@username), otherwise you could use the chat id, you'll find here. - webhook_url: the url of webhook to send message to discord channel, by defult is:
None.
Made with ❤️ by Enmanuel Magallanes
Metadata
Release files for notify-function 1.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| notify_function-1.5.2.tar.gz | 5.2 kB | Without provenance | Details for notify_function-1.5.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| notify_function-1.5.2-py3-none-any.whl | Python 3 | none | any | Details for notify_function-1.5.2-py3-none-any.whl |
Total release size: 11.7 kB
Release files / notify_function-1.5.2.tar.gz
| Download URL | notify_function-1.5.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77024de48a6d8d67e60dd555f82d9a37703b0c11d4c2e0386c7ddb807935d37e
|
|
BLAKE2b-256 checksum How to use checksums |
3100f2946f172eb8b194b0d2de59876966d7547ed6f0b607f11a0d85aa3e4290
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / notify_function-1.5.2-py3-none-any.whl
| Download URL | notify_function-1.5.2-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
577cb9b82852dabc3659533de54a35b07e1fd55cc76ae3d67d5129b6a7b4243a
|
|
BLAKE2b-256 checksum How to use checksums |
2c85ae0f66ef0b24b8c832132655bf7a7050bd142b862ad72f53dca07f322e86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for notify-function 1.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.