Skip to main content

yuppie-lark

飞书(Lark / Feishu)OpenAPI 客户端库,基于 tenant_access_token 鉴权,覆盖消息、多维表格、电子表格、云文档(Drive)四大业务域。异步(httpx),无 MCP 依赖。

安装

pip install yuppie-lark

快速开始

import asyncio

from yuppie_lark import LarkClient, LarkConfig

async def main() -> None:
    client = LarkClient(LarkConfig.from_env())  # 读取 LARK_APP_ID / LARK_APP_SECRET / LARK_BASE_URL
    resp = await client.send_message(
        receive_id_type="open_id",
        receive_id="ou_xxx",
        msg_type="text",
        content='{"text": "hello"}',
    )
    print(resp)

asyncio.run(main())

环境变量:

  • LARK_APP_ID(必填)
  • LARK_APP_SECRET(必填)
  • LARK_BASE_URL(可选,默认 https://open.feishu.cn

能力域

Mixin 能力
MessagesMixin 消息发送
BitableMixin / QuickBitableMixin 多维表格记录增删改查、批量操作、应用/表格管理
SheetsMixin / QuickSheetsMixin 电子表格读写、格式、批量操作
DriveMixin 云文档/文件夹管理、上传下载

详细 API 见各模块 docstring。

相关

本包是 yuppie-mcp-lark(MCP Server 壳包)的底层客户端库。若要用 MCP 方式操作飞书,请安装:

pip install yuppie-mcp-lark

Download files

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

Source Distribution

yuppie_lark-0.3.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

yuppie_lark-0.3.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file yuppie_lark-0.3.0.tar.gz.

File metadata

  • Download URL: yuppie_lark-0.3.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yuppie_lark-0.3.0.tar.gz
Algorithm Hash digest
SHA256 df34d14d8b5f31cfd2af539b0d3dc1fb6001a80fc75b44d50a34ac0d3c56259f
MD5 e860e4f8ded8f6c7e7ed4fbf9d0f1063
BLAKE2b-256 22b236664b0a911d061dda5334c6bebb53e23be5662aff1db27d840d3a30a770

See more details on using hashes here.

File details

Details for the file yuppie_lark-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: yuppie_lark-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for yuppie_lark-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f85dbfac725552069975dbc0fcd357b5b8335c336b984da80d1ccb529f96d454
MD5 c6d7b74c522b09351b4f53ef3f8fda3d
BLAKE2b-256 af11bd1b5ec02c88bd341f74407bb7d0da2a8208c1a9bb298ab3948fc93b8065

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.1

2 files

0.4.0

2 files

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page