Metadata-Version: 2.4
Name: elizaos-plugin-feishu
Version: 2.0.0a4
Summary: Feishu/Lark plugin for elizaOS - Python implementation for bot integration
Project-URL: Homepage, https://github.com/elizaos/eliza
Project-URL: Documentation, https://elizaos.ai/docs
Project-URL: Repository, https://github.com/elizaos/eliza
Author: elizaOS Contributors
License-Expression: MIT
Keywords: agents,ai,bot,bytedance,chat,elizaos,feishu,lark
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: httpx>=0.28.0
Requires-Dist: lark-oapi>=1.2.0
Requires-Dist: pydantic>=2.10.0
Requires-Dist: websockets>=12.0
Provides-Extra: dev
Requires-Dist: mypy>=1.14.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
Requires-Dist: pytest-cov>=6.0.0; extra == 'dev'
Requires-Dist: pytest-xprocess>=1.0.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: python-dotenv>=1.0.0; extra == 'dev'
Requires-Dist: ruff>=0.8.0; extra == 'dev'
Description-Content-Type: text/markdown

# Feishu/Lark Plugin for ElizaOS (Python)

Python implementation of the Feishu/Lark plugin for elizaOS agents.

## Installation

```bash
pip install elizaos-plugin-feishu
```

## Usage

```python
from elizaos_plugin_feishu import FeishuService, FeishuConfig

# Create configuration
config = FeishuConfig.from_env()

# Or create manually
config = FeishuConfig(
    app_id="cli_xxx",
    app_secret="your-app-secret",
    domain="feishu",  # or "lark" for global
)

# Create and start service
service = FeishuService(config)
await service.start()

# Send a message
await service.send_message(
    chat_id="oc_xxx",
    content=FeishuContent(text="Hello from ElizaOS!")
)

# Stop service
await service.stop()
```

## Configuration

Environment variables:

- `FEISHU_APP_ID`: Application ID (required)
- `FEISHU_APP_SECRET`: Application secret (required)
- `FEISHU_DOMAIN`: "feishu" or "lark" (default: "feishu")
- `FEISHU_ALLOWED_CHATS`: JSON array of allowed chat IDs

## License

MIT
