https://github.com/benature/larkpy
飞书开放平台 Python 接口 | Python SDK for Lark
https://github.com/benature/larkpy
api feishu lark python
Last synced: 6 months ago
JSON representation
飞书开放平台 Python 接口 | Python SDK for Lark
- Host: GitHub
- URL: https://github.com/benature/larkpy
- Owner: Benature
- License: gpl-3.0
- Created: 2025-02-01T15:45:10.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-16T16:17:32.000Z (7 months ago)
- Last Synced: 2025-03-16T16:37:37.050Z (7 months ago)
- Topics: api, feishu, lark, python
- Language: Python
- Homepage: https://pypi.org/project/larkpy/
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lark.py
飞书开放平台 Python 接口 | Python SDK for Lark## 安装 Install
```shell
pip install larkpy
```## 快速开始 Quick Start
```python
from larkpy import LarkBoturl_webhook = "https://open.feishu.cn/open-apis/bot/v2/hook/xxxxxxx"
feishu = LarkBot(url_webhook)# example 1
feishu.send_text(f"test")# example 2
payload = [
dict(tag="text", text=f"随便说点啥,然后配个链接" + "\n"),
dict(tag="a", text="🔗 link", href="https://www.github.com")
]
feishu.send_with_payload(payload, title="标题")
```