Skip to main content

飞书开放平台 Python 接口 | Python SDK for Lark

Project description

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="标题")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

larkpy-0.2.2.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

larkpy-0.2.2-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file larkpy-0.2.2.tar.gz.

File metadata

  • Download URL: larkpy-0.2.2.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for larkpy-0.2.2.tar.gz
Algorithm Hash digest
SHA256 06e3b5470140bbe102e9376496ae785772771909b1e90ee41195fa8d2c2ac98a
MD5 7f0f3c0b0a74be35ac1d53f520d4e936
BLAKE2b-256 17816b3fdb2389b10822fcba70f92d465e7080e15db71af7adf5e19d8ee9cc38

See more details on using hashes here.

Provenance

The following attestation bundles were made for larkpy-0.2.2.tar.gz:

Publisher: ci-cd.yml on Benature/larkpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file larkpy-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: larkpy-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for larkpy-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4abe9f7e9a1d2c1b98a93e36186318b1d60dcece2b1d4f3910395ba7b1074e8d
MD5 5ed004475382c1381a7bb23079f992f4
BLAKE2b-256 9ecd70a88f7056635302b20fc59503ceeda86411434910cdecb2dc5a9f4e06f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for larkpy-0.2.2-py3-none-any.whl:

Publisher: ci-cd.yml on Benature/larkpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page