Metadata-Version: 2.1
Name: wechat_work
Version: 0.0.1
Summary: A tool for Wechat Work
Home-page: https://github.com/Micro-sheep/wechat_work
Author: micro sheep
Author-email: micro-sheep@outlook.com
License: MIT
Project-URL: Documentation, https://github.com/Micro-sheep/wechat_work
Project-URL: Source, https://github.com/Micro-sheep/wechat_work
Keywords: wechat,wechat work,message,notification
Platform: any
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# 企业微信工具

这是一个基于企业微信开发的消息通知的 Python 库

## Guide

开始之前，请先跟随一下步骤创建一个企业应用

- [注册/登录微信管理后台](https://work.weixin.qq.com/)
- [创建/管理应用](https://work.weixin.qq.com/wework_admin/frame#apps)
- [查看企业ID](https://work.weixin.qq.com/wework_admin/frame#profile)
- [查看企业微信成员信息](https://work.weixin.qq.com/wework_admin/frame#contacts)

## Installation

- 通过 `pip` 安装

```bash
pip install wechat_work
```

- 通过 `git` 和 `pip` 安装

```bash
pip install git+https://github.com/Micro-sheep/wechat_work.git
```

## Examples

```python
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)
```


