没有项目描述

gar-cron的Python项目详细描述


pypipythonimplementation

docslicenselast-commit

donatefollow

gar cron

github activity reminder cron-向您发送有关github提交活动的提醒的脚本。默认情况下,当3天或更长时间没有提交活动时,它会发送邮件。Read this DEV.to article to understand more about this tool

安装

pip install gar-cron

用法

gar-cron

配置

当您第一次运行gar cron时,它将提示您设置config.json中的值及其路径。您需要设置的值如下(您需要一个smtp邮件帐户来拍摄电子邮件,像gmail/hotmail这样的流行帐户在没有oauth的情况下不支持此功能,所以请在gmx.com或其他位置注册一个):

{
	"github_username": "<your github username>",
	"alert_email": "<your email address>",
	"smtp_server":"<smtp server>",
	"smtp_email": "<smtp sending email>",
	"smtp_username": "<smtp username>",
	"smtp_password": "<smtp password>",
	"smtp_port": "<smtp port>"
}

完成此操作后,再次运行gar-cron以确保其正常工作。然后,您可以在linux上通过运行crontab -e将其配置为用户cron作业,或者在windows上通过控制面板对其进行调度。

为了测试电子邮件提醒,您可以在config.json中临时配置其他人的github_username,该人在运行之前很久没有提交过邮件提醒。

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

推荐PyPI第三方库


热门话题
在通过REST Api发送之前,java是否会操纵map中键的顺序?   java实时代码编译?   java在尝试使用JavaFX制作东西时获得0xC0000409   java截图并返回servlet?   java哪个用户认证集成安全性?   SpringJavaMailSender和MS Exchange:java。lang.noclassdeffounderror:com。太阳邮政uti。邮件记录器   Linux上的Java小程序无法获得权限   java如何获得一行(范围)中字符串的组合?   媒体播放器的java意图过滤器(Youtube视频播放)   java如何明确地确定文件是否不是我想要的类型?   Java 8中并发异步方法后跟并行执行方法