安装仅需一行命令: <span textstyle style="background-color: rgb(240, 240, 240)">bash pip install x4g</span>`<span textstyle style="background-color: rgb(240, 240, 240)">基础用法非常简单,给任务函数加装饰器配置运行规则,调用启动函数即可,无需额外初始化:</span>`<span textstyle style="background-color: rgb(240, 240, 240)">python from x4g import task, run @task(retry=3, schedule="</span><span textstyle style="font-style: italic; background-color: rgb(240, 240, 240)">/5</span><span textstyle style="background-color: rgb(240, 240, 240)">*") def job(): print("任务执行") if __name__ == "__main__": run()</span>X4G尤其适合Python初学者、追求效率的运维/后端开发者、需要快速搭建工具原型的小团队。学习时建议优先使用内置组件匹配轻量场景,不推荐用其开发重型Web服务。
🔗 项目地址:https://github.com/x4gKing/X4G