lark-oapi
Lark OpenAPI SDK for Python
Decision gist · record as of 2026-08-14
Yes. The SDK is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and installs with low friction. It is the canonical way to integrate with Feishu's server APIs from Python; if you are building on Feishu or Lark, this is the right choice.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later and valid Feishu app credentials (app_id and app_secret or client_assertion provider).
- Low install friction with a pure-wheel distribution.
- Active maintenance with a release 9 days ago and 549 repository stars.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
last release 2026-08-05 (9 days) · last repo commit 2026-08-05 · 549 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,910,710 downloads/mo, #2,827 on PyPI
Alternatives
Verify before relying
pip install lark-oapi
import lark_oapi as lark
from lark_oapi.api.im.v1 import *
client = lark.Client.builder().app_id("cli_xxx").app_secret("your_app_secret").build()
request = CreateMessageRequest.builder().receive_id_type("chat_id").request_body(CreateMessageRequestBody.builder().receive_id("oc_xxx").msg_type("text").content("{\"text\":\"hello world\"}").build()).build()
response = client.im.v1.message.create(request)- Scope and completeness of Feishu API endpoints covered by this SDK version.
- Performance characteristics and rate-limiting behavior under production load.
- Backward compatibility guarantees across minor and patch versions.
What it is and what it does
This is the official Python SDK for Feishu (also known as Lark), a workplace collaboration platform. It abstracts away the repetitive work of calling Feishu's server-side APIs—handling OAuth token lifecycle, cryptographic request signing, payload encryption/decryption, and event routing—so you can focus on building features rather than protocol plumbing. The SDK provides typed request and response models for messaging, contact management, approval workflows, spreadsheets, and other Feishu capabilities.
You build a client with your app credentials, then call methods like `client.im.v1.message.create()` to send messages or handle incoming events through a dispatcher. The SDK supports both traditional app_secret authentication and keyless JWT-based assertion flows for external signing services. It also includes a one-click app registration flow that guides users through OAuth device-flow setup and lets you pre-configure scopes, events, and callbacks before they confirm.
Use it for
- Build a Feishu bot that sends notifications or responds to messages in channels and direct chats.
- Integrate Feishu messaging into a third-party service to notify users of events or alerts.
- Automate approval workflows by programmatically creating and updating approval instances.
- Sync data between Feishu Sheets or Base and external systems via the SDK's typed API models.
- Handle incoming Feishu events (messages, card interactions) through the SDK's event dispatcher.
- Register and configure a new Feishu app on behalf of a user via the OAuth device-flow helper.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The SDK is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and installs with low friction. It is the canonical way to integrate with Feishu's server APIs from Python; if you are building on Feishu or Lark, this is the right choice.
Install
lark-oapi on PyPI
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with a release 9 days ago and 549 repository stars. Supports Python 3.8 through 3.12.
Requires Python 3.8 or later and valid Feishu app credentials (app_id and app_secret or client_assertion provider).
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install lark-oapi
import lark_oapi as lark
from lark_oapi.api.im.v1 import *
client = lark.Client.builder().app_id("cli_xxx").app_secret("your_app_secret").build()
request = CreateMessageRequest.builder().receive_id_type("chat_id").request_body(CreateMessageRequestBody.builder().receive_id("oc_xxx").msg_type("text").content("{\"text\":\"hello world\"}").build()).build()
response = client.im.v1.message.create(request)
Verify before relying
- Scope and completeness of Feishu API endpoints covered by this SDK version.
- Performance characteristics and rate-limiting behavior under production load.
- Backward compatibility guarantees across minor and patch versions.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesrequestsrequests_toolbeltpycryptodomewebsocketshttpx |
| Maintenance | Actively maintained 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,910,710 / month, #2,827 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: lark_oapi-1.7.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “feishu openapi sdk python”
- lark-oapiPython SDK for the Feishu Open Platform that wraps API calls, token…
- alibabacloud-tea-openapiProvides a Python SDK for calling Alibaba Cloud OpenAPI services,…
- microsoft-kiota-abstractionsProvides core abstractions and base classes that Kiota-generated SDKs…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also lark · lark-js · lark-parser · onesignal-python-api · alibabacloud-openapi-util · schwab-py · longbridge · twitchAPI · alibabacloud-tea-openapi · fastapi-cloudauth