ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
Project description
|
|
ErisPulse事件驱动的多平台机器人开发框架 |
简介
ErisPulse 是一个基于 Python 的事件驱动型多平台机器人开发框架。通过统一的 OneBot12 标准接口,您可以一次编写代码,同时在云湖、Telegram、OneBot 等多个平台部署相同功能的机器人。框架提供灵活的模块(插件)系统、热重载支持和完整的开发者工具链,适用于从简单聊天机器人到复杂自动化系统的各种场景。
核心特性
- 事件驱动架构 - 基于 OneBot12 标准的清晰事件模型
- 跨平台兼容 - 插件模块编写一次即可在所有平台使用
- 模块化设计 - 灵活的插件系统,易于扩展和集成
- 热重载支持 - 开发时无需重启即可重新加载代码
- 完整工具链 - 提供 CLI 工具、包管理和自动化脚本
快速开始
安装
pip install ErisPulse
# 国内镜像
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ErisPulse
# 使用 `uv` 安装
uv install ErisPulse
如果您的 Python 版本低于 3.10,可以使用一键安装脚本自动配置环境。详见 安装脚本说明。
初始化项目
# 交互式初始化
epsdk init
# 快速初始化(指定项目名称)
epsdk init -q -n my_bot
创建第一个机器人
创建 main.py 文件:
|
命令处理器 from ErisPulse import sdk
from ErisPulse.Core.Event import command
@command("hello", help="发送问候消息")
async def hello_handler(event):
user_name = event.get_user_nickname() or "朋友"
await event.reply(f"你好,{user_name}!")
@command("ping", help="测试机器人是否在线")
async def ping_handler(event):
await event.reply("Pong!机器人运行正常。")
if __name__ == "__main__":
import asyncio
asyncio.run(sdk.run(keep_running=True))
|
效果说明 发送 机器人回复: 发送 机器人回复: 运行方式 epsdk run main.py
# 或开发模式
epsdk run main.py --reload
|
更多详细说明请参阅:
应用场景
- 多平台机器人 - 在多个平台部署相同功能的机器人
- 聊天助手 - 接入 AI 聊天模块,实现娱乐和交互
- 自动化工具 - 消息通知、任务管理、数据收集
- 消息转发 - 跨平台消息同步和转发
支持的适配器
欢迎您贡献适配器!
- 云湖 - 企业级即时通讯平台(机器人账户)
- 云湖用户 - 基于云湖用户账户的适配器
- Telegram - 全球性即时通讯软件
- OneBot11 - 通用机器人接口标准
- OneBot12 - OneBot12 标准
- 邮件 - 邮件收发处理
- 沙箱 - 网页调试界面,无需接入实际平台
查看 适配器详情介绍
文档资源
| 简体中文 | English | 繁體中文 |
|---|---|---|
| 文档入口 | Documentation | 文檔入口 |
外部资源
| 平台 | 主站点 | 备用站点 |
|---|---|---|
| 文档 | erisdev.com | Cloudflare • GitHub • Netlify |
| 模块市场 | erisdev.com | Cloudflare • GitHub • Netlify |
贡献指南
ErisPulse 项目的健全性还需要您的一份力!我们欢迎各种形式的贡献,包括但不限于:
-
报告问题 在 GitHub Issues 提交 bug 报告
-
功能请求 通过 社区讨论 提出新想法
-
文档改进 帮助完善文档和示例代码
致谢
- 本项目部分代码基于 sdkFrame
- 核心适配器标准化层基于 OneBot12 规范
- 感谢所有为开源社区做出贡献的开发者和作者
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file erispulse-2.3.9.tar.gz.
File metadata
- Download URL: erispulse-2.3.9.tar.gz
- Upload date:
- Size: 101.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7482b3b8909861b45756e5f6e06148ca2e214db7c82d3cc9694fbb3246b1a53
|
|
| MD5 |
e8bd602579a30483fc217b94d3495a52
|
|
| BLAKE2b-256 |
5742fee86e747ece2f930dc9c91513090881d6716280826a4feb84b5a20a2b72
|
Provenance
The following attestation bundles were made for erispulse-2.3.9.tar.gz:
Publisher:
pypi-publish.yml on ErisPulse/ErisPulse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erispulse-2.3.9.tar.gz -
Subject digest:
e7482b3b8909861b45756e5f6e06148ca2e214db7c82d3cc9694fbb3246b1a53 - Sigstore transparency entry: 1191044792
- Sigstore integration time:
-
Permalink:
ErisPulse/ErisPulse@0e446739d19b2eea73145d9662db850ec14646e1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ErisPulse
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@0e446739d19b2eea73145d9662db850ec14646e1 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file erispulse-2.3.9-py3-none-any.whl.
File metadata
- Download URL: erispulse-2.3.9-py3-none-any.whl
- Upload date:
- Size: 182.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7be90438586d59537ca1f183e1b36d1e8065c1e0c8d5c8f5a2e51d2304c6e20
|
|
| MD5 |
1b5a4c1a08375ae14372e57af9cd0fd9
|
|
| BLAKE2b-256 |
0673a2c59613091ef3095669c93e5ebb762787d54ad7738fe25ab4830945855e
|
Provenance
The following attestation bundles were made for erispulse-2.3.9-py3-none-any.whl:
Publisher:
pypi-publish.yml on ErisPulse/ErisPulse
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erispulse-2.3.9-py3-none-any.whl -
Subject digest:
c7be90438586d59537ca1f183e1b36d1e8065c1e0c8d5c8f5a2e51d2304c6e20 - Sigstore transparency entry: 1191044794
- Sigstore integration time:
-
Permalink:
ErisPulse/ErisPulse@0e446739d19b2eea73145d9662db850ec14646e1 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ErisPulse
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@0e446739d19b2eea73145d9662db850ec14646e1 -
Trigger Event:
workflow_dispatch
-
Statement type: