Skip to content

you-n-g/wan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wait And Notify(WAN)

This package is under development. We will release it soon in the future.

Installation

pip install wan  # TODO: upload this to pip source

config

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

Usage

Use in python code

  • 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

About

Wait and notify conveniently

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors 3

  •  
  •  
  •