简介
基于飞书官方文档,封装的飞书消息机器人接口。支持简单的消息格式校验,获取发送消息所需 file_key, image_key 等。更多使用示例,可参考接口文档。
使用示例
安装
pip install -U feishu-chatbot
发送文本
from chatbot import ChatBotClient, TextChatBot
client = ChatBotClient(app_id="xxx", app_secret='xxx')
user = client.get_user_id_by_email("jack@gmail.com")
data = {
"msg_type": "text",
"content": {"text": "示例文本消息"},
"receive_id": user["open_id"],
}
chatbot = TextChatBot.set_client(client).set_data(data).build()
chatbot.send()
Metadata
Release files for feishu-chatbot 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| feishu_chatbot-0.0.5.tar.gz | 15.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| feishu_chatbot-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 39.3 kB
Release files / feishu_chatbot-0.0.5.tar.gz
| Download URL | feishu_chatbot-0.0.5.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adc1c8dc3249bb4d88865e21869f4a4b27372c9d1d952913fcc7cdf60edc092d
|
|
BLAKE2b-256 checksum How to use checksums |
4b75b8a991508ef27e78c92944f792f8585333d08d1facd8053394a6aca05a67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Release files / feishu_chatbot-0.0.5-py3-none-any.whl
| Download URL | feishu_chatbot-0.0.5-py3-none-any.whl |
|---|---|
| Size | 24.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d3c0629d749089fb9077f309aed5a2a1bffb4439d894e1fdb649e0da758b5085
|
|
BLAKE2b-256 checksum How to use checksums |
bfa71a783ba3e0c8127386bfb2414bc937f01f9665a8ed4c2014fa09c28ac2b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
|
Security for feishu-chatbot 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.