Skip to main content

pymsy

安装

pip install pymsg

class DingTalkRobot

因钉钉的自定义机器人存在限制:"每个机器人每分钟最多发送20条";为方便使用,该类实例会暂存未发送的消息,并在之后尝试再次发送。

示例

>>> from pymsg import DingTalkRobot

>>> robot = DingTalkRobot('https://oapi.dingtalk.com/robot/send?access_token=***')

>>> robot.text(
...     content='我就是我,  @1825718**** 是不一样的烟火',      # 消息内容
...     at='1825718****',                                  # 被@人的手机号, 可传多个
...     at_all=False                                       # @所有人,默认:False
... )
0                                                          # 返回暂存队列长度
结果
详细功能请参考代码

Metadata

Release files for pymsg 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymsg 0.2.0
File Size Uploaded Provenance
pymsg-0.2.0.tar.gz 2.8 kB Without provenance Details

Release files / pymsg-0.2.0.tar.gz

Download URL pymsg-0.2.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8fc37899faa03b6424f38e06807a358c97296136c04c9e646db8102fff6afd93
BLAKE2b-256 checksum
How to use checksums
b7c3ecfc237b5997a737a5d1fd1defbcbca1bad1d1678e4e56bd88831bab4eaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

Security for pymsg 0.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page