Metadata-Version: 2.1
Name: PyFeishu
Version: 0.2.0
Summary: This is a msg-robot for FeiShu.
Home-page: https://github.com/liukecode/pyfeishu
License: MIT
Keywords: feishu,api,boy,robot
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Topic :: Communications
Classifier: Topic :: Office/Business
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: requests (==2.26.0)
Requires-Dist: requests-toolbelt (==0.9.1)
Requires-Dist: tenacity (==8.0.1)

# PyFeishu
[![GitHub issues](https://img.shields.io/github/issues/liukecode/pyfeishu)](https://github.com/liukecode/pyfeishu/issues)
[![GitHub forks](https://img.shields.io/github/forks/liukecode/pyfeishu)](https://github.com/liukecode/pyfeishu/network)
[![GitHub stars](https://img.shields.io/github/stars/liukecode/pyfeishu)](https://github.com/liukecode/pyfeishu/stargazers)
[![GitHub license](https://img.shields.io/github/license/liukecode/pyfeishu)](https://github.com/liukecode/pyfeishu/blob/main/LICENSE)
[![contributors](https://img.shields.io/github/contributors/liukecode/pyfeishu)](https://github.com/liukecode/pyfeishu/graphs/contributors)
[![PyPI](https://img.shields.io/pypi/v/pyfeishu)](https://pypi.org/project/pyfeishu/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyfeishu)](https://pypi.org/project/pyfeishu/)
[![Downloads](https://pepy.tech/badge/pyfeishu/month)](https://pepy.tech/project/pyfeishu)

This is a msg-robot for [feishu](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/im-v1/introduction)

## Install
```
python -m pip install pyfeishu
```
## Getting Started
send text msg
```
import pyfeishu
bot = pyfeishu.FeishuBot(app_id, app_secret)
msg = {"text": "test content"}
# @single user
# msg = {"text": "<at user_id='ou_xxx'>LiuKe</at>  \ntest content"}
# @all user
# msg = {"text": "<at  user_id='all'>所有人</at>  \ntest content"}
bot.send_msg(msg, 'chat_id'))
```

send image msg
```
image_key = bot.upload_image("img_path")
msg = {"image_key": image_key}
bot.send_msg(msg, 'chat_id', 'image')
```

## Features
- Automatically token management
- Get chat id
- Send text msg
- Send	rich text
- Send image  msg


## Contributing

Contributions are welcome.<br/>
If you've found a bug within this project, please open an issue to discuss what you would like to change.<br/>
If it's an issue with the API, please report any new issues at [pyfeishu issues](https://github.com/liukecode/pyfeishu)

