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.1.1.tar.gz (23.3 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.1.1-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for larkpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f9568da0a4772a93fbf349ff07dd593bc9719ce01e9c3bfeb5bc7bbc53e619a0
MD5 88c875ac803e8e420507bb72e684eceb
BLAKE2b-256 75df8da9c67b9ce1b4f00db25fda09603c1b71e644b6a436494d559a11d87d5e

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for larkpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 36cdcb2d390f06d1ce2f7564bb877e9fa9d38fedeeec04ab7543ca3fb7bca94e
MD5 6ab800cf1aaf10aa178f2172ce73437b
BLAKE2b-256 d38c87805455f842d344bd14688f63a3e9d8e3dc674c25e47bf69608837b2f32

See more details on using hashes here.

Provenance

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