11# ipush
22
3- APP 推送通知
3+ APP 推送通知。支持往 ** 钉钉群、飞书群、Lark 群、Bark、Chanify、PushDeer ** 推送消息。
44
55## 使用说明
66
771 . 安装依赖
88
9+ - https://pypi.org/project/ipush/
10+
911``` shell
1012pip install -U ipush
1113```
@@ -14,32 +16,48 @@ pip install -U ipush
1416
1517``` python
1618from ipush.notify.dingtalk import Dingtalk
17- from ipush.notify.feishu import Feishu
18- from ipush.notify.lark import Lark
1919
2020notify = Dingtalk(" token" , " secret" )
2121notify.send(" ipush test" )
22-
23- notify = Feishu(" token" , " secret" )
24- notify.send(" ipush test" )
25-
26- notify = Lark(" token" , " secret" )
27- notify.send(" ipush test" )
2822```
2923
3024## 支持平台
3125
32- | 状态 | ** 国内** 平台 | 官网 | 文档 | 备注 |
33- | :------- | :---------------- | :-------------------------------------------------------------------------------------------------------- | :--- | :--- |
34- | ✔ ** 荐** | ** 钉钉群机器人** | [ https://open.dingtalk.com/ ] ( https://open.dingtalk.com/document/robots/customize-robot-security-settings ) | - | |
35- | ✔ ** 荐** | ** 飞书群机器人** | [ https://open.feishu.cn/ ] ( https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot ) | - | |
36- | ✔ ** 荐** | ** Lark 群机器人** | [ https://open.larksuite.com/ ] ( https://open.larksuite.com/document/client-docs/bot-v3/add-custom-bot ) | - | |
26+ | 状态 | ** 国内** 平台 | 官网 | 文档 | 备注 |
27+ | :------- | :---------------- | :-------------------------------------------------------------------------------------------------------- | :--- | :----------- |
28+ | ✔ ** 荐** | ** 钉钉群机器人** | [ https://open.dingtalk.com/ ] ( https://open.dingtalk.com/document/robots/customize-robot-security-settings ) | - | |
29+ | ✔ ** 荐** | ** 飞书群机器人** | [ https://open.feishu.cn/ ] ( https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot ) | - | |
30+ | ✔ ** 荐** | ** Lark 群机器人** | [ https://open.larksuite.com/ ] ( https://open.larksuite.com/document/client-docs/bot-v3/add-custom-bot ) | - | |
31+ | ✔ ** 荐** | ** Bark** | [ https://day.app/2021/06/barkfaq/ ] ( https://day.app/2021/06/barkfaq/ ) | - | 仅支持 ` iOS ` |
32+ | ✔ | ** Chanify** | [ https://www.chanify.net/ ] ( https://www.chanify.net/ ) | - | 仅支持 ` iOS ` |
33+ | ✔ | ** PushDeer** | https://www.pushdeer.com/ | - | |
34+
35+ ## 开发
3736
38- ## 前置环境
37+ ### 前置环境
3938
40391 . 使用 [ ** Rye** ] ( https://rye-up.com/ ) 作为包管理工具
4140
42- ## 单元测试
41+ ### 开发
42+
43+ 1 . 安装依赖包:
44+
45+ ``` bash
46+ # 同步
47+ rye sync
48+ ```
49+
50+ 2 . 代码检测与格式化:
51+
52+ ``` bash
53+ # 检测
54+ rye run check
55+
56+ # 格式化
57+ rye run format
58+ ```
59+
60+ 3 . 单元测试:
4361
4462``` bash
4563# rye test
0 commit comments