This package is under development. We will release it soon in the future.
pip install wan # TODO: upload this to pip source
Please config your notifiers.
wan
will read the setting in ~/.dotfiles/.notifers.yaml
as the arguments for notifiers.
Here is a config example of telegram
provider: telegram
kwargs:
chat_id: <Your Chat id from `@myidbot` by sending `/getid`>
token: <Your token from `@BotFather` by sending `/newbot`>
Other configs:
log_level: DEBUG # the default level is INFO
- Call the function in python code directly.
<Your code which takes a lot of time>
from wan import ntf; ntf('Finished')
- Call the function in shell directly
> sleep 10 ; wan ntf sleep finished