Skip to main content

A wechat work webhook client.

Project description

Description

企业微信群机器人Webhook Python 客户端. 支持文本消息, markdown, 图片, 图文, 文件 消息 ( https://work.weixin.qq.com/api/doc/90000/90136/91770 ).

A wechat work webhook Python client which support text, markdown, image, news, file message ( https://work.weixin.qq.com/api/doc/90000/90136/91770 ).

Install

pip install --upgrade wechat_work_webhook

Examples

import wechat_work_webhook
wechat = wechat_work_webhook.connect("webhook_url")

wechat.text('test',['@all'])

wechat.markdown('实时新增用户反馈<font color=\"warning\">132例</font>,请相关同事注意。')

wechat.image('test.png')

wechat.news([{
               "title" : "中秋节礼品领取",
               "description" : "今年中秋节公司有豪礼相送",
               "url" : "URL",
               "picurl" : "http://res.mail.qq.com/node/ww/wwopenmng/images/independent/doc/test_pic_msg1.png"
           }])

wechat.media(wechat.upload_media('test.csv')['media_id'])

wechat.file('test.csv')


# send pandas dataframe to wechat work as image:
# pip install dataframe_image
wechat.df(df)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wechat_work_webhook-0.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wechat_work_webhook-0.0.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file wechat_work_webhook-0.0.2.tar.gz.

File metadata

  • Download URL: wechat_work_webhook-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for wechat_work_webhook-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b09d3ae5dbf319d20cb903e75dac3a190b886c99fd6b6abda4e3b19962b70205
MD5 2abb37d6d0e38cf1d6542458c1145a95
BLAKE2b-256 f78a2614517fb3b845f27a6649ff7a57afdd8e702c70e0b9c6ab2b708318320e

See more details on using hashes here.

File details

Details for the file wechat_work_webhook-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: wechat_work_webhook-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for wechat_work_webhook-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ae59b6729350c66580fd0bef9db56f1676bc55aaefe22c9aa466f77d3eaed4b
MD5 62dca46fa726a6c7387c5ae0395eb0d6
BLAKE2b-256 aa5bcf20ecb75cb3b121654d366bd02350b6fd134a13324497167300cd0c60e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page