功能
- 支持所有钉钉消息类型。
- 支持加签的安全设置。
Python版本
Python 3.6+
安装
1. 安装requests
pip install requests
2. 安装该模块
pip install dingtalk-webhook
使用
import dingtalk
access_token = 'xxxxxxx...xxx' # 创建webhook机器人时产生的access_token
secret = 'SECxxxxxxx' # 如果安全设置没有勾选加签,可不用设置该参数
dt = dingtalk.DingTalk(access_token=access_token, secret=secret)
dt.send_text(text='测试消息', at_all=True)
Metadata
Release files for dingtalk-webhook 1.1.6
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 |
|---|---|---|---|---|
| dingtalk-webhook-1.1.6.tar.gz | 3.7 kB | Without provenance | Details for dingtalk-webhook-1.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dingtalk_webhook-1.1.6-py3-none-any.whl | Python 3 | none | any | Details for dingtalk_webhook-1.1.6-py3-none-any.whl |
Total release size: 7.8 kB
Release files / dingtalk-webhook-1.1.6.tar.gz
| Download URL | dingtalk-webhook-1.1.6.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f119703412d07463b7c5443b4671304026e9ba66b24d24b5bb39f219fc78cda6
|
|
BLAKE2b-256 checksum How to use checksums |
0291cd6e0c0a052b5d731829c6ff79737a8a302995be26e2021093c222d8091a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.2
|
Release files / dingtalk_webhook-1.1.6-py3-none-any.whl
| Download URL | dingtalk_webhook-1.1.6-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5339e5f0be273abca9ded0268434110c75733706cc23d2b913fbf28dba3ecf06
|
|
BLAKE2b-256 checksum How to use checksums |
dc89b06fc9dd82a082e5defe8bd0d0fc8abec63f8493a736d25a027c4874fd9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.27.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.8.2
|
Security for dingtalk-webhook 1.1.6
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.