pywecom-webhook 1.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 郭磊
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,339 @@
1
+ Metadata-Version: 2.4
2
+ Name: pywecom-webhook
3
+ Version: 1.0.4
4
+ Summary: 一个简化企业微信群机器人 webhook 调用的 Python 工具包,提供同步和异步发送消息的功能。
5
+ Home-page: https://gitee.com/guolei19850528/pywecom_webhook
6
+ Author: guolei
7
+ Author-email: guolei <174000902@qq.com>
8
+ License: MIT License
9
+
10
+ Copyright (c) 2026 郭磊
11
+
12
+ Permission is hereby granted, free of charge, to any person obtaining a copy
13
+ of this software and associated documentation files (the "Software"), to deal
14
+ in the Software without restriction, including without limitation the rights
15
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
+ copies of the Software, and to permit persons to whom the Software is
17
+ furnished to do so, subject to the following conditions:
18
+
19
+ The above copyright notice and this permission notice shall be included in all
20
+ copies or substantial portions of the Software.
21
+
22
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
+ SOFTWARE.
29
+
30
+ Project-URL: Homepage, https://gitee.com/guolei19850528/pywecom_webhook
31
+ Keywords: wecom,webhook,api,sdk,enterprise-wechat,企业微信,机器人
32
+ Classifier: Programming Language :: Python :: 3
33
+ Classifier: License :: OSI Approved :: MIT License
34
+ Classifier: Operating System :: OS Independent
35
+ Requires-Python: >=3.6
36
+ Description-Content-Type: text/markdown
37
+ License-File: LICENSE
38
+ Requires-Dist: httpx
39
+ Requires-Dist: jsonschema
40
+ Requires-Dist: decorator
41
+ Requires-Dist: jsonpath-ng
42
+ Dynamic: author
43
+ Dynamic: home-page
44
+ Dynamic: license-file
45
+ Dynamic: requires-python
46
+
47
+ # pywecom-webhook
48
+
49
+ 企业微信机器人 Webhook API 的 Python SDK,支持发送文本、Markdown、图片、图文、文件、语音等消息类型,同时提供同步和异步两种调用方式。
50
+
51
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
52
+ [![Python Version](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/)
53
+ [![Code Style: Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
54
+
55
+ ## 功能特性
56
+
57
+ - ✅ 支持多种消息类型:文本、Markdown、MarkdownV2、图片、图文、文件、语音
58
+ - ✅ 基于 Pydantic 2.0 实现数据模型验证
59
+ - ✅ 支持 @ 指定用户或 @all
60
+ - ✅ 支持文件上传(upload_media)
61
+ - ✅ 支持模板卡片消息
62
+ - ✅ 同步发送器(Sender)
63
+ - ✅ 异步发送器(AsyncSender),支持 async with 语法
64
+ - ✅ 基于 httpx 实现,支持同步/异步请求
65
+
66
+ ## 安装
67
+
68
+ 使用 pip 安装:
69
+
70
+ ```bash
71
+ pip install pywecom-webhook
72
+ ```
73
+
74
+ 或从源码安装:
75
+
76
+ ```bash
77
+ git clone https://gitee.com/guolei19850528/pywecom_webhook.git
78
+ cd pywecom-webhook
79
+ pip install .
80
+ ```
81
+
82
+ ## 快速开始
83
+
84
+ ### 同步发送
85
+
86
+ ```python
87
+ from pywecom_webhook import Sender, TextContent
88
+
89
+ # 创建 Sender 实例
90
+ sender = Sender(key="your_webhook_key")
91
+
92
+ # 发送文本消息
93
+ result = sender.send_text(TextContent(content="Hello, World!"))
94
+ print(result)
95
+ ```
96
+
97
+ ### 异步发送
98
+
99
+ ```python
100
+ import asyncio
101
+ from pywecom_webhook import AsyncSender, TextContent
102
+
103
+ async def main():
104
+ # 使用 async with 语法
105
+ async with AsyncSender(key="your_webhook_key") as sender:
106
+ result = await sender.send_text(TextContent(content="Hello, Async World!"))
107
+ print(result)
108
+
109
+ asyncio.run(main())
110
+ ```
111
+
112
+ ### 发送带 @ 的消息
113
+
114
+ ```python
115
+ from pywecom_webhook import Sender, TextContent
116
+
117
+ sender = Sender(
118
+ key="your_webhook_key",
119
+ mentioned_list=["user1", "user2"], # 默认 @ 用户列表
120
+ mentioned_mobile_list=["13800000000"] # 默认 @ 手机号列表
121
+ )
122
+
123
+ # 发送带 @ 的文本消息
124
+ result = sender.send_text(
125
+ TextContent(
126
+ content="重要通知:系统即将维护",
127
+ mentioned_list=["@all"], # @ 所有人
128
+ mentioned_mobile_list=["13900000000"]
129
+ )
130
+ )
131
+ ```
132
+
133
+ ## 消息类型
134
+
135
+ ### 1. 文本消息
136
+
137
+ ```python
138
+ from pywecom_webhook import TextContent
139
+
140
+ content = TextContent(
141
+ content="这是一条文本消息",
142
+ mentioned_list=["user_id"],
143
+ mentioned_mobile_list=["13800000000"]
144
+ )
145
+ sender.send_text(content)
146
+
147
+ # 异步方式
148
+ await async_sender.send_text(content)
149
+ ```
150
+
151
+ ### 2. Markdown 消息
152
+
153
+ ```python
154
+ from pywecom_webhook import MarkdownContent
155
+
156
+ content = MarkdownContent(
157
+ content="""## 标题
158
+
159
+ **加粗文本**
160
+
161
+ *斜体文本*
162
+
163
+ > 引用文本
164
+
165
+ [链接](https://example.com)
166
+ """
167
+ )
168
+ sender.send_markdown(content)
169
+ ```
170
+
171
+ ### 3. MarkdownV2 消息
172
+
173
+ ```python
174
+ from pywecom_webhook import MarkdownV2Content
175
+
176
+ content = MarkdownV2Content(
177
+ content="<font color=\"red\">红色文本</font>\n\n<b>加粗文本</b>"
178
+ )
179
+ sender.send_markdown_v2(content)
180
+ ```
181
+
182
+ ### 4. 图片消息
183
+
184
+ ```python
185
+ import base64
186
+ import hashlib
187
+ from pywecom_webhook import ImageContent
188
+
189
+ with open("image.png", "rb") as f:
190
+ image_data = f.read()
191
+
192
+ content = ImageContent(
193
+ base64=base64.b64encode(image_data).decode("utf-8"),
194
+ md5=hashlib.md5(image_data).hexdigest()
195
+ )
196
+ sender.send_image(content)
197
+ ```
198
+
199
+ ### 5. 图文消息
200
+
201
+ ```python
202
+ from pywecom_webhook import NewsArticleContent, NewsArticlesContent
203
+
204
+ article = NewsArticlesContent(
205
+ articles=[
206
+ NewsArticleContent(
207
+ title="文章标题",
208
+ description="文章描述",
209
+ url="https://example.com",
210
+ pic_url="https://example.com/image.jpg"
211
+ )
212
+ ]
213
+ )
214
+ sender.send_news([article])
215
+ ```
216
+
217
+ ### 6. 文件消息
218
+
219
+ ```python
220
+ from pywecom_webhook import FileContent
221
+
222
+ # 先上传文件获取 media_id
223
+ media_id = sender.upload_media(
224
+ file_type="file",
225
+ files={"file": ("test.txt", open("test.txt", "rb"), "text/plain")}
226
+ )
227
+
228
+ # 发送文件消息
229
+ content = FileContent(media_id=media_id)
230
+ sender.send_file(content)
231
+
232
+ # 异步方式
233
+ media_id = await async_sender.upload_media(
234
+ file_type="file",
235
+ files={"file": ("test.txt", open("test.txt", "rb"), "text/plain")}
236
+ )
237
+ await async_sender.send_file(FileContent(media_id=media_id))
238
+ ```
239
+
240
+ ### 7. 语音消息
241
+
242
+ ```python
243
+ from pywecom_webhook import VoiceContent
244
+
245
+ # 先上传语音文件获取 media_id
246
+ media_id = sender.upload_media(
247
+ file_type="voice",
248
+ files={"file": ("voice.amr", open("voice.amr", "rb"), "audio/amr")}
249
+ )
250
+
251
+ # 发送语音消息
252
+ content = VoiceContent(media_id=media_id)
253
+ sender.send_voice(content)
254
+ ```
255
+
256
+ ### 8. 模板卡片消息
257
+
258
+ ```python
259
+ template_card = {
260
+ "msgtype": "template_card",
261
+ "template_card": {
262
+ "card_type": "text_notice",
263
+ "source": {
264
+ "icon_url": "https://example.com/icon.png",
265
+ "desc": "通知来源"
266
+ },
267
+ "main_title": {
268
+ "title": "标题",
269
+ "desc": "描述"
270
+ },
271
+ "card_action": {
272
+ "type": 1,
273
+ "url": "https://example.com"
274
+ }
275
+ }
276
+ }
277
+ sender.send_template_card(template_card)
278
+ ```
279
+
280
+ ## API 文档
281
+
282
+ ### Sender 类(同步)
283
+
284
+ ```python
285
+ class Sender(
286
+ base_url: str = "https://qyapi.weixin.qq.com/cgi-bin/webhook",
287
+ key: str = None,
288
+ mentioned_list: list = None,
289
+ mentioned_mobile_list: list = None,
290
+ client_kwargs: dict = None
291
+ )
292
+ ```
293
+
294
+ ### AsyncSender 类(异步)
295
+
296
+ ```python
297
+ class AsyncSender(
298
+ base_url: str = "https://qyapi.weixin.qq.com/cgi-bin/webhook",
299
+ key: str = None,
300
+ mentioned_list: list = None,
301
+ mentioned_mobile_list: list = None,
302
+ client_kwargs: dict = None
303
+ )
304
+ ```
305
+
306
+ **参数说明**:
307
+ - `base_url`: Webhook 接口地址,默认为官方地址
308
+ - `key`: 群机器人的 Webhook key
309
+ - `mentioned_list`: 默认 @ 用户列表
310
+ - `mentioned_mobile_list`: 默认 @ 手机号列表
311
+ - `client_kwargs`: 传递给 httpx.Client / httpx.AsyncClient 的额外参数
312
+
313
+ ### 发送方法
314
+
315
+ | 同步方法 | 异步方法 | 说明 |
316
+ |---------|---------|------|
317
+ | `send_text(content)` | `async send_text(content)` | 发送文本消息 |
318
+ | `send_markdown(content)` | `async send_markdown(content)` | 发送 Markdown 消息 |
319
+ | `send_markdown_v2(content)` | `async send_markdown_v2(content)` | 发送 MarkdownV2 消息 |
320
+ | `send_image(content)` | `async send_image(content)` | 发送图片消息 |
321
+ | `send_news(content)` | `async send_news(content)` | 发送图文消息 |
322
+ | `send_file(content)` | `async send_file(content)` | 发送文件消息 |
323
+ | `send_voice(content)` | `async send_voice(content)` | 发送语音消息 |
324
+ | `send_template_card(content)` | `async send_template_card(content)` | 发送模板卡片消息 |
325
+ | `upload_media(file_type, **kwargs)` | `async upload_media(file_type, **kwargs)` | 上传媒体文件 |
326
+ | `send(**kwargs)` | `async send(**kwargs)` | 直接发送消息(底层方法) |
327
+
328
+
329
+ ## 企业微信官方文档
330
+
331
+ 参考企业微信官方文档:[群机器人配置说明](https://developer.work.weixin.qq.com/document/path/91770)
332
+
333
+ ## 许可证
334
+
335
+ MIT License
336
+
337
+ ## 作者
338
+
339
+ 郭磊 <174000902@qq.com>
@@ -0,0 +1,293 @@
1
+ # pywecom-webhook
2
+
3
+ 企业微信机器人 Webhook API 的 Python SDK,支持发送文本、Markdown、图片、图文、文件、语音等消息类型,同时提供同步和异步两种调用方式。
4
+
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
6
+ [![Python Version](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/)
7
+ [![Code Style: Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
8
+
9
+ ## 功能特性
10
+
11
+ - ✅ 支持多种消息类型:文本、Markdown、MarkdownV2、图片、图文、文件、语音
12
+ - ✅ 基于 Pydantic 2.0 实现数据模型验证
13
+ - ✅ 支持 @ 指定用户或 @all
14
+ - ✅ 支持文件上传(upload_media)
15
+ - ✅ 支持模板卡片消息
16
+ - ✅ 同步发送器(Sender)
17
+ - ✅ 异步发送器(AsyncSender),支持 async with 语法
18
+ - ✅ 基于 httpx 实现,支持同步/异步请求
19
+
20
+ ## 安装
21
+
22
+ 使用 pip 安装:
23
+
24
+ ```bash
25
+ pip install pywecom-webhook
26
+ ```
27
+
28
+ 或从源码安装:
29
+
30
+ ```bash
31
+ git clone https://gitee.com/guolei19850528/pywecom_webhook.git
32
+ cd pywecom-webhook
33
+ pip install .
34
+ ```
35
+
36
+ ## 快速开始
37
+
38
+ ### 同步发送
39
+
40
+ ```python
41
+ from pywecom_webhook import Sender, TextContent
42
+
43
+ # 创建 Sender 实例
44
+ sender = Sender(key="your_webhook_key")
45
+
46
+ # 发送文本消息
47
+ result = sender.send_text(TextContent(content="Hello, World!"))
48
+ print(result)
49
+ ```
50
+
51
+ ### 异步发送
52
+
53
+ ```python
54
+ import asyncio
55
+ from pywecom_webhook import AsyncSender, TextContent
56
+
57
+ async def main():
58
+ # 使用 async with 语法
59
+ async with AsyncSender(key="your_webhook_key") as sender:
60
+ result = await sender.send_text(TextContent(content="Hello, Async World!"))
61
+ print(result)
62
+
63
+ asyncio.run(main())
64
+ ```
65
+
66
+ ### 发送带 @ 的消息
67
+
68
+ ```python
69
+ from pywecom_webhook import Sender, TextContent
70
+
71
+ sender = Sender(
72
+ key="your_webhook_key",
73
+ mentioned_list=["user1", "user2"], # 默认 @ 用户列表
74
+ mentioned_mobile_list=["13800000000"] # 默认 @ 手机号列表
75
+ )
76
+
77
+ # 发送带 @ 的文本消息
78
+ result = sender.send_text(
79
+ TextContent(
80
+ content="重要通知:系统即将维护",
81
+ mentioned_list=["@all"], # @ 所有人
82
+ mentioned_mobile_list=["13900000000"]
83
+ )
84
+ )
85
+ ```
86
+
87
+ ## 消息类型
88
+
89
+ ### 1. 文本消息
90
+
91
+ ```python
92
+ from pywecom_webhook import TextContent
93
+
94
+ content = TextContent(
95
+ content="这是一条文本消息",
96
+ mentioned_list=["user_id"],
97
+ mentioned_mobile_list=["13800000000"]
98
+ )
99
+ sender.send_text(content)
100
+
101
+ # 异步方式
102
+ await async_sender.send_text(content)
103
+ ```
104
+
105
+ ### 2. Markdown 消息
106
+
107
+ ```python
108
+ from pywecom_webhook import MarkdownContent
109
+
110
+ content = MarkdownContent(
111
+ content="""## 标题
112
+
113
+ **加粗文本**
114
+
115
+ *斜体文本*
116
+
117
+ > 引用文本
118
+
119
+ [链接](https://example.com)
120
+ """
121
+ )
122
+ sender.send_markdown(content)
123
+ ```
124
+
125
+ ### 3. MarkdownV2 消息
126
+
127
+ ```python
128
+ from pywecom_webhook import MarkdownV2Content
129
+
130
+ content = MarkdownV2Content(
131
+ content="<font color=\"red\">红色文本</font>\n\n<b>加粗文本</b>"
132
+ )
133
+ sender.send_markdown_v2(content)
134
+ ```
135
+
136
+ ### 4. 图片消息
137
+
138
+ ```python
139
+ import base64
140
+ import hashlib
141
+ from pywecom_webhook import ImageContent
142
+
143
+ with open("image.png", "rb") as f:
144
+ image_data = f.read()
145
+
146
+ content = ImageContent(
147
+ base64=base64.b64encode(image_data).decode("utf-8"),
148
+ md5=hashlib.md5(image_data).hexdigest()
149
+ )
150
+ sender.send_image(content)
151
+ ```
152
+
153
+ ### 5. 图文消息
154
+
155
+ ```python
156
+ from pywecom_webhook import NewsArticleContent, NewsArticlesContent
157
+
158
+ article = NewsArticlesContent(
159
+ articles=[
160
+ NewsArticleContent(
161
+ title="文章标题",
162
+ description="文章描述",
163
+ url="https://example.com",
164
+ pic_url="https://example.com/image.jpg"
165
+ )
166
+ ]
167
+ )
168
+ sender.send_news([article])
169
+ ```
170
+
171
+ ### 6. 文件消息
172
+
173
+ ```python
174
+ from pywecom_webhook import FileContent
175
+
176
+ # 先上传文件获取 media_id
177
+ media_id = sender.upload_media(
178
+ file_type="file",
179
+ files={"file": ("test.txt", open("test.txt", "rb"), "text/plain")}
180
+ )
181
+
182
+ # 发送文件消息
183
+ content = FileContent(media_id=media_id)
184
+ sender.send_file(content)
185
+
186
+ # 异步方式
187
+ media_id = await async_sender.upload_media(
188
+ file_type="file",
189
+ files={"file": ("test.txt", open("test.txt", "rb"), "text/plain")}
190
+ )
191
+ await async_sender.send_file(FileContent(media_id=media_id))
192
+ ```
193
+
194
+ ### 7. 语音消息
195
+
196
+ ```python
197
+ from pywecom_webhook import VoiceContent
198
+
199
+ # 先上传语音文件获取 media_id
200
+ media_id = sender.upload_media(
201
+ file_type="voice",
202
+ files={"file": ("voice.amr", open("voice.amr", "rb"), "audio/amr")}
203
+ )
204
+
205
+ # 发送语音消息
206
+ content = VoiceContent(media_id=media_id)
207
+ sender.send_voice(content)
208
+ ```
209
+
210
+ ### 8. 模板卡片消息
211
+
212
+ ```python
213
+ template_card = {
214
+ "msgtype": "template_card",
215
+ "template_card": {
216
+ "card_type": "text_notice",
217
+ "source": {
218
+ "icon_url": "https://example.com/icon.png",
219
+ "desc": "通知来源"
220
+ },
221
+ "main_title": {
222
+ "title": "标题",
223
+ "desc": "描述"
224
+ },
225
+ "card_action": {
226
+ "type": 1,
227
+ "url": "https://example.com"
228
+ }
229
+ }
230
+ }
231
+ sender.send_template_card(template_card)
232
+ ```
233
+
234
+ ## API 文档
235
+
236
+ ### Sender 类(同步)
237
+
238
+ ```python
239
+ class Sender(
240
+ base_url: str = "https://qyapi.weixin.qq.com/cgi-bin/webhook",
241
+ key: str = None,
242
+ mentioned_list: list = None,
243
+ mentioned_mobile_list: list = None,
244
+ client_kwargs: dict = None
245
+ )
246
+ ```
247
+
248
+ ### AsyncSender 类(异步)
249
+
250
+ ```python
251
+ class AsyncSender(
252
+ base_url: str = "https://qyapi.weixin.qq.com/cgi-bin/webhook",
253
+ key: str = None,
254
+ mentioned_list: list = None,
255
+ mentioned_mobile_list: list = None,
256
+ client_kwargs: dict = None
257
+ )
258
+ ```
259
+
260
+ **参数说明**:
261
+ - `base_url`: Webhook 接口地址,默认为官方地址
262
+ - `key`: 群机器人的 Webhook key
263
+ - `mentioned_list`: 默认 @ 用户列表
264
+ - `mentioned_mobile_list`: 默认 @ 手机号列表
265
+ - `client_kwargs`: 传递给 httpx.Client / httpx.AsyncClient 的额外参数
266
+
267
+ ### 发送方法
268
+
269
+ | 同步方法 | 异步方法 | 说明 |
270
+ |---------|---------|------|
271
+ | `send_text(content)` | `async send_text(content)` | 发送文本消息 |
272
+ | `send_markdown(content)` | `async send_markdown(content)` | 发送 Markdown 消息 |
273
+ | `send_markdown_v2(content)` | `async send_markdown_v2(content)` | 发送 MarkdownV2 消息 |
274
+ | `send_image(content)` | `async send_image(content)` | 发送图片消息 |
275
+ | `send_news(content)` | `async send_news(content)` | 发送图文消息 |
276
+ | `send_file(content)` | `async send_file(content)` | 发送文件消息 |
277
+ | `send_voice(content)` | `async send_voice(content)` | 发送语音消息 |
278
+ | `send_template_card(content)` | `async send_template_card(content)` | 发送模板卡片消息 |
279
+ | `upload_media(file_type, **kwargs)` | `async upload_media(file_type, **kwargs)` | 上传媒体文件 |
280
+ | `send(**kwargs)` | `async send(**kwargs)` | 直接发送消息(底层方法) |
281
+
282
+
283
+ ## 企业微信官方文档
284
+
285
+ 参考企业微信官方文档:[群机器人配置说明](https://developer.work.weixin.qq.com/document/path/91770)
286
+
287
+ ## 许可证
288
+
289
+ MIT License
290
+
291
+ ## 作者
292
+
293
+ 郭磊 <174000902@qq.com>
@@ -0,0 +1,39 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "pywecom-webhook"
7
+ version = "1.0.4"
8
+ requires-python = ">=3.10"
9
+ description = "一个简化企业微信群机器人 webhook 调用的 Python 工具包,提供同步和异步发送消息的功能。"
10
+ readme = { file = "README.md", content-type = "text/markdown" }
11
+ license = { file = "LICENSE" }
12
+ authors = [
13
+ { name = "guolei", email = "174000902@qq.com" }
14
+ ]
15
+ keywords = ["wecom", "webhook", "api", "sdk", "enterprise-wechat", "企业微信", "机器人"]
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "License :: OSI Approved :: MIT License",
19
+ "Operating System :: OS Independent",
20
+ ]
21
+ dependencies = [
22
+ "httpx",
23
+ "jsonschema",
24
+ "decorator",
25
+ "jsonpath-ng",
26
+ ]
27
+
28
+ [project.urls]
29
+ "Homepage" = "https://gitee.com/guolei19850528/pywecom_webhook"
30
+
31
+ [tool.setuptools.packages.find]
32
+ where = ["src"]
33
+
34
+ [tool.setuptools.package-dir]
35
+ "" = "src"
36
+
37
+ [tool.pytest.ini_options]
38
+ testpaths = ["tests"]
39
+ pythonpath = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+