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.0.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.0-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: larkpy-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 aad2433640e8fb235b36fa81b546a08e54d64455fdc3f100e28e29f63ab3d645
MD5 33528f0aeab475d4b2066a4e2f1f4b1e
BLAKE2b-256 f392ce00d98df81b7d56f76edc8c0bff654450de96e1d8be6e3c14e7ce72ca96

See more details on using hashes here.

Provenance

The following attestation bundles were made for larkpy-0.2.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: larkpy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed5e279f8ba72d288080a0f63769d81e53b74d4d0182a4029492f60abf2f0c6d
MD5 1f826efa662f5d42c2405f7c655b77d4
BLAKE2b-256 b7c7ff2898209168a7bf78bd0c376a8acca4efad2bee2c398fde7d31d542a1d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for larkpy-0.2.0-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