这只是 WorkTool API 的简单封装,以便于能够在各种程序中引入复用。
可以参考 WorkTool的API文档,但部分功能尚未封装。
已封装的功能
- 发送文本
- 发送图片/文件/音频/视频/其他
- 发送腾讯文档/收集表
- 发送微盘图片
- 添加群成员
- 移除群成员
- 修改群名
- 修改公告
- 修改群备注
- 解散群
- 添加待办
- 添加好友(从手机号)
- 添加好友(从群)
- 移除好友
- 修改好友
使用示例
安装模块
pip install wecom_worktool
from wecom_worktool import Worktool
with Worktool("your_robot_id") as bot:
bot.send_file(
["群1", "好友1"],
"文件名.jpg",
"https://your_image_url.jpg",
bot.FileType.IMAGE
)
bot.send_text(
["好友1"],
"Hello world!"
)
bot.send_text(
["群1"],
"Hello world!",
["@所有人"]
)
Metadata
Release files for wecom-worktool 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wecom_worktool-0.1.2.tar.gz | 19.5 kB | Without provenance | Details for wecom_worktool-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wecom_worktool-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for wecom_worktool-0.1.2-py3-none-any.whl |
Total release size: 26.7 kB
Release files / wecom_worktool-0.1.2.tar.gz
| Download URL | wecom_worktool-0.1.2.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aaa34edd9d90d824ee4b82e978da4181e467c700386e8e6eae96048af25407bb
|
|
BLAKE2b-256 checksum How to use checksums |
ff0b7efb1db1fb114516cd852064fcf7d85a4f4f7c0590f6a3299b6305fd52b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.30
|
Release files / wecom_worktool-0.1.2-py3-none-any.whl
| Download URL | wecom_worktool-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a0c5a2301b2607d1a4850831ae43695a15f9ac714a5bf40e2d7a81f2ed40a14e
|
|
BLAKE2b-256 checksum How to use checksums |
3d255d785d2333a4d21ad7045e7a6a657a15677652c795b27e636cb4c971a085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.30
|
Security for wecom-worktool 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.