企业微信工具
这是一个基于企业微信 API 开发的用于消息通知的 Python 库
Guide
开始之前,请先跟随一下步骤创建一个企业微信应用
Installation
- 通过
pip安装
pip install wechat_work
- 通过
git和pip安装
pip install git+https://github.com/Micro-sheep/wechat_work.git
Examples
from wechat_work import WechatWork
corpid = '企业 ID'
appid = '企业应用 ID'
corpsecret = '企业应用 Secret'
users = ['企业微信的用户账号1', '企业微信的用户账号2']
w = WechatWork(corpid=corpid,
appid=appid,
corpsecret=corpsecret)
# 发送文本
w.send_text('Hello World!', users)
# 发送 Markdown
w.send_markdown('# Hello World', users)
# 发送图片
w.send_image('./hello.jpg', users)
# 发送文件
w.send_file('./hello.txt', users)
Metadata
Release files for wechat-work 0.0.3
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 |
|---|---|---|---|---|
| wechat_work-0.0.3.tar.gz | 4.5 kB | Without provenance | Details for wechat_work-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wechat_work-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for wechat_work-0.0.3-py3-none-any.whl |
Total release size: 9.8 kB
Release files / wechat_work-0.0.3.tar.gz
| Download URL | wechat_work-0.0.3.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c119ad7aa475787e4ee812e6f233fcddc5ef37dcba87649335c3cf6bb9294ea
|
|
BLAKE2b-256 checksum How to use checksums |
14df752bb587ed51aa3a1545491e84f0baa44aa1019b89761e07c5f871377ee3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.11.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.9
|
Release files / wechat_work-0.0.3-py3-none-any.whl
| Download URL | wechat_work-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
244d95949c8550a1bb871071728b66ebdfe3bef4cbada9c0c223bae2a67c4ad7
|
|
BLAKE2b-256 checksum How to use checksums |
f513b5d9e222b90124742e1a2bf891a2afef8d71e780aa777fa7a9b0c81acd63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.11.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.7.9
|
Security for wechat-work 0.0.3
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.