Skip to content

exit-notifier is a Python library that sends customizable notifications upon program exit. Whether your script finishes normally or encounters an error, exit-notifier ensures you're informed with detailed logs. Ideal for error tracking and keeping visibility on script execution.

License

Notifications You must be signed in to change notification settings

EvensXia/exit-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exit-notifier

Exit Notifier 是一个命令行工具,允许您在脚本执行完毕后,自动发送通知(如电子邮件)。这对于需要长时间运行的脚本或需要在无人值守的情况下监控脚本执行情况的场景非常有用。

Install

python -m pip install exit-notifier

Config

config mail

exit_notifier config mail

show config

exit_notifier show

reset config

exit_notifier reset

Use

exit_notifier run -c mail -p /path/to/your_script.py --args [脚本参数]

example usage:

exit_notifier run -c mail -p test_scripts/test_args_in.py --args -n 1 -s ss -l 1 2 5 --flag
exit_notifier run -c mail -p test_scripts/test_script.py 

Notice

你的配置将被以明文记录到配置文件:~/.exit_notifier/notice.yaml中,注意警惕隐私泄露

About

exit-notifier is a Python library that sends customizable notifications upon program exit. Whether your script finishes normally or encounters an error, exit-notifier ensures you're informed with detailed logs. Ideal for error tracking and keeping visibility on script execution.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published