未知

donemail的Python项目详细描述


https://travis-ci.org/alexandershov/donemail.svg?branch=master

这是什么?

当某个进程/命令/功能/代码完成时,donemail会向您发送一封电子邮件。

安装

pip install donemail

用法

您需要在端口25上运行SMTP服务器。

在命令行中:

# run command 'sleep 10' and send an email after it exits
donemail run bob@example.com sleep 10

或:

# send an email when process with pid 123 exits
donemail wait bob@example.com 123

作为装饰师:

fromdonemailimportdonemail# send an email after each long_running_function() call@donemail('bob@example.com')deflong_running_function():sleep(10)

作为上下文管理器:

fromdonemailimportdonemail# send an email after sleep(10) completeswithdonemail('bob@example.com'):sleep(10)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
使用SerializationUtils时java ClassNotFoundException。克隆()   java Cucumber+spring:如何通过测试触发SmartLifecycle事件?   java如何使ProGuard以简单的方式工作?   java JSP页面显示来自集合的日期   谷歌地图检查坐标是否位于JAVA中谷歌地图API的多边形中   java如何在终端中使用“tokens”打印令牌?   java获取编译错误:包com。威里奥。sdk不存在   java会使用JAXB或类似工具自动填充HATEAOS链接吗?   Javascript(GraalJS)与Java中未签名的右移>>>>   如何在Java代码中创建jdbc请求的Jmeter测试   java如何在CellList中添加或删除单个元素?   java Progressbar:如何创建原始对象的深度副本