A tool for Wechat Work
Project description
企业微信工具
这是一个基于企业微信开发的消息通知的 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 = 'corpsecret'
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)
Project details
Release history Release notifications | RSS feed
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-0.0.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for wechat_work-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa4712c522ef48a07acf0f4365b7845788b2dc6e4fdb13d3bd276883a19bcec |
|
MD5 | dcaa4ce45f3b940be152b84abb0ca681 |
|
BLAKE2b-256 | 45bc4d367ccd6c86d351159aa97d9c0c761ea6594ac5e1b6770fa16f523211bf |