pypush:Push 推送通知的 Python 库
向 APP、微信平台推送通知。
支持往 Telegram、钉钉群、飞书群、Lark 群、Bark、Chanify、PushDeer、PushPlus、Showdoc、息知、Alertzy、Notify 推送消息。
使用说明
- 安装依赖
pip install -U ipush
- 创建
notify
对象,并发送消息
from ipush import Dingtalk as Channel
notify = Channel("token", "secret")
notify.send("iPush test")
支持平台
开发
1. 前置开发环境
- 使用 Rye 作为包管理工具
2. 开发流程
- 安装依赖包:
# 同步
rye sync
- 代码检测与格式化:
# 检测
rye run check
# 格式化
rye run format
- 单元测试:
# rye test
rye run tests
# pytest
python -m pytest
# 打印测试报告
python -m pytest -s
仓库镜像