File tree Expand file tree Collapse file tree 7 files changed +41
-7
lines changed Expand file tree Collapse file tree 7 files changed +41
-7
lines changed Original file line number Diff line number Diff line change 1- # pypush
1+ # ipush
22
33APP 推送通知
44
5+ ## 使用说明
6+
7+ 1 . 安装依赖
8+
9+ ``` shell
10+ pip install -U ipush
11+ ```
12+
13+ 2 . 创建 ` notify ` 对象,并发送消息
14+
15+ ``` python
16+ from ipush.notify.dingtalk import Dingtalk
17+ from ipush.notify.feishu import Feishu
18+ from ipush.notify.lark import Lark
19+
20+ notify = Dingtalk(" token" , " secret" )
21+ notify.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" )
28+ ```
29+
530## 支持平台
631
732| 状态 | ** 国内** 平台 | 官网 | 文档 | 备注 |
@@ -26,3 +51,9 @@ python -m pytest
2651# 打印测试报告
2752python -m pytest -s
2853```
54+
55+ ## 仓库镜像
56+
57+ - https://git.jetsung.com/idev/pypush
58+ - https://framagit.org/idev/pypush
59+ - https://github.com/idevsig/pypush
Original file line number Diff line number Diff line change 11[project ]
22name = " ipush"
3- version = " 0.1.0 "
3+ version = " 0.1.1 "
44description = " Push for python"
55authors = [
66 {
name =
" Jetsung Chan" ,
email =
" [email protected] " }
@@ -54,7 +54,7 @@ check = { cmd = "python -m ruff check . --fix" }
5454allow-direct-references = true
5555
5656[tool .hatch .build .targets .wheel ]
57- packages = [" src/push " ]
57+ packages = [" src/ipush " ]
5858
5959[tool .pytest .ini_options ]
6060testpaths = [" tests" ]
Original file line number Diff line number Diff line change 11import os
22
33import pytest
4- from src .ipush .notify .dingtalk import Dingtalk
4+
5+ from ipush .notify .dingtalk import Dingtalk
56
67
78@pytest .fixture
Original file line number Diff line number Diff line change 11import os
22
33import pytest
4- from src .ipush .notify .feishu import Feishu
4+
5+ from ipush .notify .feishu import Feishu
56
67
78@pytest .fixture
Original file line number Diff line number Diff line change 11from urllib .parse import unquote
22
3- from src . ipush .utils .helper import signature
3+ from ipush .utils .helper import signature
44
55
66class TestHelper :
Original file line number Diff line number Diff line change 11import os
22
33import pytest
4- from src .ipush .notify .lark import Lark
4+
5+ from ipush .notify .lark import Lark
56
67
78@pytest .fixture
You can’t perform that action at this time.
0 commit comments