lark.py
飞书开放平台 Python 接口 | Python SDK for Lark
安装 Install
pip install larkpy
快速开始 Quick Start
from larkpy import LarkBot
url_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="标题")
Metadata
Release files for larkpy 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| larkpy-0.3.0.tar.gz | 36.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| larkpy-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.8 kB
Release files / larkpy-0.3.0.tar.gz
| Download URL | larkpy-0.3.0.tar.gz |
|---|---|
| Size | 36.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
119c19c8c6f716825406cdc4f8f5223f8b3b5a91d983c5883e9e1ce99b51059b
|
|
BLAKE2b-256 checksum How to use checksums |
3b3927bfe0468685652b78c4b6ef17750d90a2a8a7b32af5588c8d36812fcdc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2025.
Transparency logRelease files / larkpy-0.3.0-py3-none-any.whl
| Download URL | larkpy-0.3.0-py3-none-any.whl |
|---|---|
| Size | 34.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6fb340c1a03fc2bda2af6e9caad6acb9bef5d3d2b66dd7ce2cffcbaa81defd09
|
|
BLAKE2b-256 checksum How to use checksums |
5a308ebb9e2081a85b5b183c4a98028acfc47e9c51a9264712102a58792decfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 7, 2025.
Transparency log