Wait and notify conveniently
Important
WAN is in the Beta phase. Changes and potential instability should be anticipated. Any feedback, comments, suggestions and contributions are welcome!
This package is under development. We will release it soon in the future.
You can install wan with one of the following command
# 1)
pip install wanot
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
MIT License, for more details, see the LICENSE file.