ErisPulse 2.4.0.dev3__tar.gz → 2.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/PKG-INFO +54 -21
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/README.md +218 -189
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/pyproject.toml +5 -1
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/cli.py +4 -57
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/cli.pyi +1 -16
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/init.py +1 -1
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/install.py +6 -64
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/install.pyi +1 -3
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/list.py +2 -32
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/list_remote.py +2 -24
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/uninstall.py +0 -9
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/registry.py +5 -33
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/registry.pyi +1 -23
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/utils/package_manager.py +76 -63
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/utils/package_manager.pyi +4 -6
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Bases/adapter.py +4 -5
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Bases/adapter.pyi +1 -1
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/__init__.py +7 -1
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/__init__.pyi +1 -2
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/base.py +56 -16
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/base.pyi +1 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/command.py +3 -2
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/message.py +9 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/message.pyi +8 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/message_builder.py +0 -25
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/message_builder.pyi +0 -21
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/meta.py +9 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/meta.pyi +8 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/notice.py +9 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/notice.pyi +8 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/request.py +9 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/request.pyi +8 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/wrapper.py +440 -12
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/wrapper.pyi +194 -6
- erispulse-2.4.2/src/ErisPulse/Core/__init__.py +47 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/adapter.py +205 -50
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/adapter.pyi +27 -12
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/config.py +92 -41
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/config.pyi +17 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/lifecycle.py +3 -1
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/lifecycle.pyi +0 -9
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/module.py +104 -22
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/module.pyi +50 -9
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/router.py +84 -4
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/router.pyi +28 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/__init__.py +0 -2
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/__init__.pyi +1 -1
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/__init__.py +1 -3
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/__init__.pyi +1 -2
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/module.py +12 -4
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/sdk.py +88 -66
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/sdk.pyi +41 -14
- erispulse-2.4.0.dev3/src/ErisPulse/Core/__init__.py +0 -58
- erispulse-2.4.0.dev3/src/ErisPulse/finders/cli.py +0 -120
- erispulse-2.4.0.dev3/src/ErisPulse/finders/cli.pyi +0 -94
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/.gitignore +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/LICENSE +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/__init__.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/__init__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/base.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/base.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/__init__.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/__init__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/init.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/list.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/list_remote.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/run.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/run.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/self_update.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/self_update.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/uninstall.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/upgrade.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/commands/upgrade.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/console.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/console.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/utils/__init__.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/CLI/utils/__init__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Bases/__init__.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Bases/__init__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Bases/manager.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Bases/manager.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Bases/module.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Bases/module.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/command.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/session_type.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/Event/session_type.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/__init__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/logger.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/logger.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/storage.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/Core/storage.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/__main__.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/__main__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/adapter.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/adapter.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/bases/__init__.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/bases/__init__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/bases/finder.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/bases/finder.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/module.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/finders/module.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/__init__.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/__init__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/adapter.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/adapter.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/bases/__init__.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/bases/__init__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/bases/loader.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/bases/loader.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/module.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/strategy.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/loaders/strategy.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/runtime/__init__.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/runtime/__init__.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/runtime/cleanup.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/runtime/cleanup.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/runtime/exceptions.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/runtime/exceptions.pyi +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/runtime/frame_config.py +0 -0
- {erispulse-2.4.0.dev3 → erispulse-2.4.2}/src/ErisPulse/runtime/frame_config.pyi +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ErisPulse
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.2
|
|
4
4
|
Summary: ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。
|
|
5
5
|
Author-email: ErisDev <erisdev@88.com>
|
|
6
6
|
Maintainer-email: "艾莉丝·格雷拉特(WSu2059)" <wsu2059@qq.com>
|
|
@@ -51,15 +51,19 @@ Requires-Dist: rich>=13.0.0
|
|
|
51
51
|
Requires-Dist: toml>=0.10.2
|
|
52
52
|
Requires-Dist: watchdog>=4.0.0
|
|
53
53
|
Provides-Extra: dev
|
|
54
|
+
Requires-Dist: httpx>=0.24.0; extra == 'dev'
|
|
54
55
|
Requires-Dist: pyclean>=3.6.0; extra == 'dev'
|
|
55
56
|
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
|
|
57
|
+
Requires-Dist: pytest-benchmark>=4.0.0; extra == 'dev'
|
|
56
58
|
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
|
|
57
59
|
Requires-Dist: pytest-mock>=3.10.0; extra == 'dev'
|
|
58
60
|
Requires-Dist: pytest-xdist>=3.0.0; extra == 'dev'
|
|
59
61
|
Requires-Dist: pytest>=7.0.0; extra == 'dev'
|
|
60
62
|
Requires-Dist: ruff>=0.1.7; extra == 'dev'
|
|
61
63
|
Provides-Extra: test
|
|
64
|
+
Requires-Dist: httpx>=0.24.0; extra == 'test'
|
|
62
65
|
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'test'
|
|
66
|
+
Requires-Dist: pytest-benchmark>=4.0.0; extra == 'test'
|
|
63
67
|
Requires-Dist: pytest-cov>=4.0.0; extra == 'test'
|
|
64
68
|
Requires-Dist: pytest-mock>=3.10.0; extra == 'test'
|
|
65
69
|
Requires-Dist: pytest-xdist>=3.0.0; extra == 'test'
|
|
@@ -85,8 +89,10 @@ Description-Content-Type: text/markdown
|
|
|
85
89
|
|
|
86
90
|
[](https://pypi.org/project/ErisPulse/)
|
|
87
91
|
[](https://pypi.org/project/ErisPulse/)
|
|
92
|
+
[](https://hub.docker.com/r/erispulse/erispulse)
|
|
93
|
+
[](https://hub.docker.com/r/erispulse/erispulse)
|
|
94
|
+
[](https://hub.docker.com/r/erispulse/erispulse)
|
|
88
95
|
[](https://github.com/astral-sh/ruff)
|
|
89
|
-
[](https://socket.dev/pypi/package/ErisPulse)
|
|
90
96
|
|
|
91
97
|
</td>
|
|
92
98
|
</tr>
|
|
@@ -106,9 +112,51 @@ ErisPulse 是一个基于 Python 的事件驱动型多平台机器人开发框
|
|
|
106
112
|
- **热重载支持** - 开发时无需重启即可重新加载代码
|
|
107
113
|
- **完整工具链** - 提供 CLI 工具、包管理和自动化脚本
|
|
108
114
|
|
|
115
|
+
## 支持的适配器
|
|
116
|
+
|
|
117
|
+
欢迎您贡献适配器!
|
|
118
|
+
|
|
119
|
+
| 适配器 | 说明 |
|
|
120
|
+
|--------|------|
|
|
121
|
+
| <img src=".github/assets/adapter_logo/kook.svg" width="20" /> [Kook](https://github.com/shanfishapp/ErisPulse-KookAdapter) | Kook(开黑啦)即时通讯平台 |
|
|
122
|
+
| <img src=".github/assets/adapter_logo/matrix.svg" width="20" /> [Matrix](https://github.com/ErisPulse/ErisPulse-MatrixAdapter) | Matrix 去中心化通讯协议 |
|
|
123
|
+
| <img src=".github/assets/adapter_logo/onebot.png" width="20" /> [OneBot11](https://github.com/ErisPulse/ErisPulse-OneBot11Adapter) | OneBot v11 通用机器人协议 |
|
|
124
|
+
| <img src=".github/assets/adapter_logo/onebot.png" width="20" /> [OneBot12](https://github.com/ErisPulse/ErisPulse-OneBot12Adapter) | OneBot v12 标准协议 |
|
|
125
|
+
| <img src=".github/assets/adapter_logo/qqbot.svg" width="20" /> [QQ](https://github.com/ErisPulse/ErisPulse-QQBotAdapter) | QQ 官方机器人平台 |
|
|
126
|
+
| <img src=".github/assets/adapter_logo/sandbox.png" width="20" /> [沙箱](https://github.com/ErisPulse/ErisPulse-SandboxAdapter) | 网页端调试,无需接入真实平台 |
|
|
127
|
+
| <img src=".github/assets/adapter_logo/telegram.svg" width="20" /> [Telegram](https://github.com/ErisPulse/ErisPulse-TelegramAdapter) | 全球性即时通讯平台 |
|
|
128
|
+
| <img src=".github/assets/adapter_logo/email.svg" width="20" /> [邮件](https://github.com/ErisPulse/ErisPulse-EmailAdapter) | 邮件协议收发适配器 |
|
|
129
|
+
| <img src=".github/assets/adapter_logo/yunhu.png" width="20" /> [云湖](https://github.com/ErisPulse/ErisPulse-YunhuAdapter) | 企业级即时通讯平台(机器人接入) |
|
|
130
|
+
| <img src=".github/assets/adapter_logo/yunhu.png" width="20" /> [云湖用户](https://github.com/wsu2059q/ErisPulse-YunhuUserAdapter) | 基于云湖用户协议的接入适配器 |
|
|
131
|
+
|
|
132
|
+
查看 [适配器详情介绍](docs/zh-CN/platform-guide/README.md)
|
|
133
|
+
|
|
109
134
|
## 快速开始
|
|
110
135
|
|
|
111
|
-
###
|
|
136
|
+
### 使用 Docker (推荐)
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
docker pull erispulse/erispulse:latest
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
<details>
|
|
143
|
+
<summary>快速启动</summary>
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
# 下载 docker-compose.yml
|
|
147
|
+
curl -O https://raw.githubusercontent.com/ErisPulse/ErisPulse/main/docker-compose.yml
|
|
148
|
+
|
|
149
|
+
# 设置 Dashboard 登录令牌并启动
|
|
150
|
+
ERISPULSE_DASHBOARD_TOKEN=your-token docker compose up -d
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
> 镜像内置 ErisPulse 框架和 Dashboard 管理面板,支持 `linux/amd64` 和 `linux/arm64` 架构。
|
|
154
|
+
|
|
155
|
+
</details>
|
|
156
|
+
|
|
157
|
+
启动后访问 `http://localhost:8000/Dashboard`,使用设置的令牌作为密码登录 Dashboard 管理面板。
|
|
158
|
+
|
|
159
|
+
### 使用 pip 安装
|
|
112
160
|
|
|
113
161
|
```bash
|
|
114
162
|
pip install ErisPulse
|
|
@@ -116,8 +164,8 @@ pip install ErisPulse
|
|
|
116
164
|
# 国内镜像
|
|
117
165
|
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ErisPulse
|
|
118
166
|
|
|
119
|
-
# 使用
|
|
120
|
-
uv install ErisPulse
|
|
167
|
+
# 使用 uv 安装
|
|
168
|
+
uv pip install ErisPulse
|
|
121
169
|
```
|
|
122
170
|
|
|
123
171
|

|
|
@@ -202,21 +250,6 @@ epsdk run main.py --reload
|
|
|
202
250
|
- **自动化工具** - 消息通知、任务管理、数据收集
|
|
203
251
|
- **消息转发** - 跨平台消息同步和转发
|
|
204
252
|
|
|
205
|
-
## 支持的适配器
|
|
206
|
-
|
|
207
|
-
欢迎您贡献适配器!
|
|
208
|
-
|
|
209
|
-
- [云湖](https://github.com/ErisPulse/ErisPulse-YunhuAdapter) - 企业级即时通讯平台(机器人账户)
|
|
210
|
-
- [云湖用户](https://github.com/wsu2059q/ErisPulse-YunhuUserAdapter) - 基于云湖用户账户的适配器
|
|
211
|
-
- [Telegram](https://github.com/ErisPulse/ErisPulse-TelegramAdapter) - 全球性即时通讯软件
|
|
212
|
-
- [OneBot11](https://github.com/ErisPulse/ErisPulse-OneBot11Adapter) - 通用机器人接口标准
|
|
213
|
-
- [OneBot12](https://github.com/ErisPulse/ErisPulse-OneBot12Adapter) - OneBot12 标准
|
|
214
|
-
- [邮件](https://github.com/ErisPulse/ErisPulse-EmailAdapter) - 邮件收发处理
|
|
215
|
-
- [沙箱](https://github.com/ErisPulse/ErisPulse-SandboxAdapter) - 网页调试界面,无需接入实际平台
|
|
216
|
-
- [Kook](https://github.com/shanfishapp/ErisPulse-KookAdapter) - Kook(开黑啦)即时通讯平台
|
|
217
|
-
|
|
218
|
-
查看 [适配器详情介绍](docs/zh-CN/platform-guide/README.md)
|
|
219
|
-
|
|
220
253
|
## 文档资源
|
|
221
254
|
|
|
222
255
|
| 简体中文 | English | 繁體中文 |
|
|
@@ -254,4 +287,4 @@ ErisPulse 项目的健全性还需要您的一份力!我们欢迎各种形式
|
|
|
254
287
|
|
|
255
288
|
- 本项目部分代码基于 [sdkFrame](https://github.com/runoneall/sdkFrame)
|
|
256
289
|
- 核心适配器标准化层基于 [OneBot12 规范](https://12.onebot.dev/)
|
|
257
|
-
- 感谢所有为开源社区做出贡献的开发者和作者
|
|
290
|
+
- 感谢所有为开源社区做出贡献的开发者和作者
|
|
@@ -1,189 +1,218 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
|
|
3
|
-
[English](README.en.md) | [简体中文](README.md) | [繁體中文](README.zh-TW.md)
|
|
4
|
-
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
<table>
|
|
8
|
-
<tr>
|
|
9
|
-
<td width="35%" valign="middle" align="center">
|
|
10
|
-
<img src=".github/assets/erispulse_logo_1024.png" width="280" alt="ErisPulse" />
|
|
11
|
-
</td>
|
|
12
|
-
<td width="65%" valign="middle">
|
|
13
|
-
|
|
14
|
-
# ErisPulse
|
|
15
|
-
|
|
16
|
-
**事件驱动的多平台机器人开发框架**
|
|
17
|
-
|
|
18
|
-
[](https://pypi.org/project/ErisPulse/)
|
|
19
|
-
[](https://pypi.org/project/ErisPulse/)
|
|
20
|
-
[ | [简体中文](README.md) | [繁體中文](README.zh-TW.md)
|
|
4
|
+
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<table>
|
|
8
|
+
<tr>
|
|
9
|
+
<td width="35%" valign="middle" align="center">
|
|
10
|
+
<img src=".github/assets/erispulse_logo_1024.png" width="280" alt="ErisPulse" />
|
|
11
|
+
</td>
|
|
12
|
+
<td width="65%" valign="middle">
|
|
13
|
+
|
|
14
|
+
# ErisPulse
|
|
15
|
+
|
|
16
|
+
**事件驱动的多平台机器人开发框架**
|
|
17
|
+
|
|
18
|
+
[](https://pypi.org/project/ErisPulse/)
|
|
19
|
+
[](https://pypi.org/project/ErisPulse/)
|
|
20
|
+
[](https://hub.docker.com/r/erispulse/erispulse)
|
|
21
|
+
[](https://hub.docker.com/r/erispulse/erispulse)
|
|
22
|
+
[](https://hub.docker.com/r/erispulse/erispulse)
|
|
23
|
+
[](https://github.com/astral-sh/ruff)
|
|
24
|
+
|
|
25
|
+
</td>
|
|
26
|
+
</tr>
|
|
27
|
+
</table>
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## 简介
|
|
32
|
+
|
|
33
|
+
ErisPulse 是一个基于 Python 的事件驱动型多平台机器人开发框架。通过统一的 OneBot12 标准接口,您可以一次编写代码,同时在云湖、Telegram、OneBot 等多个平台部署相同功能的机器人。框架提供灵活的模块(`插件`)系统、热重载支持和完整的开发者工具链,适用于从简单聊天机器人到复杂自动化系统的各种场景。
|
|
34
|
+
|
|
35
|
+
## 核心特性
|
|
36
|
+
|
|
37
|
+
- **事件驱动架构** - 基于 OneBot12 标准的清晰事件模型
|
|
38
|
+
- **跨平台兼容** - 插件模块编写一次即可在所有平台使用
|
|
39
|
+
- **模块化设计** - 灵活的插件系统,易于扩展和集成
|
|
40
|
+
- **热重载支持** - 开发时无需重启即可重新加载代码
|
|
41
|
+
- **完整工具链** - 提供 CLI 工具、包管理和自动化脚本
|
|
42
|
+
|
|
43
|
+
## 支持的适配器
|
|
44
|
+
|
|
45
|
+
欢迎您贡献适配器!
|
|
46
|
+
|
|
47
|
+
| 适配器 | 说明 |
|
|
48
|
+
|--------|------|
|
|
49
|
+
| <img src=".github/assets/adapter_logo/kook.svg" width="20" /> [Kook](https://github.com/shanfishapp/ErisPulse-KookAdapter) | Kook(开黑啦)即时通讯平台 |
|
|
50
|
+
| <img src=".github/assets/adapter_logo/matrix.svg" width="20" /> [Matrix](https://github.com/ErisPulse/ErisPulse-MatrixAdapter) | Matrix 去中心化通讯协议 |
|
|
51
|
+
| <img src=".github/assets/adapter_logo/onebot.png" width="20" /> [OneBot11](https://github.com/ErisPulse/ErisPulse-OneBot11Adapter) | OneBot v11 通用机器人协议 |
|
|
52
|
+
| <img src=".github/assets/adapter_logo/onebot.png" width="20" /> [OneBot12](https://github.com/ErisPulse/ErisPulse-OneBot12Adapter) | OneBot v12 标准协议 |
|
|
53
|
+
| <img src=".github/assets/adapter_logo/qqbot.svg" width="20" /> [QQ](https://github.com/ErisPulse/ErisPulse-QQBotAdapter) | QQ 官方机器人平台 |
|
|
54
|
+
| <img src=".github/assets/adapter_logo/sandbox.png" width="20" /> [沙箱](https://github.com/ErisPulse/ErisPulse-SandboxAdapter) | 网页端调试,无需接入真实平台 |
|
|
55
|
+
| <img src=".github/assets/adapter_logo/telegram.svg" width="20" /> [Telegram](https://github.com/ErisPulse/ErisPulse-TelegramAdapter) | 全球性即时通讯平台 |
|
|
56
|
+
| <img src=".github/assets/adapter_logo/email.svg" width="20" /> [邮件](https://github.com/ErisPulse/ErisPulse-EmailAdapter) | 邮件协议收发适配器 |
|
|
57
|
+
| <img src=".github/assets/adapter_logo/yunhu.png" width="20" /> [云湖](https://github.com/ErisPulse/ErisPulse-YunhuAdapter) | 企业级即时通讯平台(机器人接入) |
|
|
58
|
+
| <img src=".github/assets/adapter_logo/yunhu.png" width="20" /> [云湖用户](https://github.com/wsu2059q/ErisPulse-YunhuUserAdapter) | 基于云湖用户协议的接入适配器 |
|
|
59
|
+
|
|
60
|
+
查看 [适配器详情介绍](docs/zh-CN/platform-guide/README.md)
|
|
61
|
+
|
|
62
|
+
## 快速开始
|
|
63
|
+
|
|
64
|
+
### 使用 Docker (推荐)
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
docker pull erispulse/erispulse:latest
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
<details>
|
|
71
|
+
<summary>快速启动</summary>
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# 下载 docker-compose.yml
|
|
75
|
+
curl -O https://raw.githubusercontent.com/ErisPulse/ErisPulse/main/docker-compose.yml
|
|
76
|
+
|
|
77
|
+
# 设置 Dashboard 登录令牌并启动
|
|
78
|
+
ERISPULSE_DASHBOARD_TOKEN=your-token docker compose up -d
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
> 镜像内置 ErisPulse 框架和 Dashboard 管理面板,支持 `linux/amd64` 和 `linux/arm64` 架构。
|
|
82
|
+
|
|
83
|
+
</details>
|
|
84
|
+
|
|
85
|
+
启动后访问 `http://localhost:8000/Dashboard`,使用设置的令牌作为密码登录 Dashboard 管理面板。
|
|
86
|
+
|
|
87
|
+
### 使用 pip 安装
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
pip install ErisPulse
|
|
91
|
+
|
|
92
|
+
# 国内镜像
|
|
93
|
+
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ErisPulse
|
|
94
|
+
|
|
95
|
+
# 使用 uv 安装
|
|
96
|
+
uv pip install ErisPulse
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+

|
|
100
|
+
|
|
101
|
+
> 如果您的 Python 版本低于 3.10,可以使用一键安装脚本自动配置环境。详见 [安装脚本说明](scripts/install/)。
|
|
102
|
+
|
|
103
|
+
### 初始化项目
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
# 交互式初始化
|
|
107
|
+
epsdk init
|
|
108
|
+
|
|
109
|
+
# 快速初始化(指定项目名称)
|
|
110
|
+
epsdk init -q -n my_bot
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### 创建第一个机器人
|
|
114
|
+
|
|
115
|
+
创建 `main.py` 文件:
|
|
116
|
+
|
|
117
|
+
<table>
|
|
118
|
+
<tr>
|
|
119
|
+
<td width="50%" valign="top">
|
|
120
|
+
|
|
121
|
+
**命令处理器**
|
|
122
|
+
|
|
123
|
+
```python
|
|
124
|
+
from ErisPulse import sdk
|
|
125
|
+
from ErisPulse.Core.Event import command
|
|
126
|
+
|
|
127
|
+
@command("hello", help="发送问候消息")
|
|
128
|
+
async def hello_handler(event):
|
|
129
|
+
user_name = event.get_user_nickname() or "朋友"
|
|
130
|
+
await event.reply(f"你好,{user_name}!")
|
|
131
|
+
|
|
132
|
+
@command("ping", help="测试机器人是否在线")
|
|
133
|
+
async def ping_handler(event):
|
|
134
|
+
await event.reply("Pong!机器人运行正常。")
|
|
135
|
+
|
|
136
|
+
if __name__ == "__main__":
|
|
137
|
+
import asyncio
|
|
138
|
+
asyncio.run(sdk.run(keep_running=True))
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
</td>
|
|
142
|
+
<td width="50%" valign="top">
|
|
143
|
+
|
|
144
|
+
**效果说明**
|
|
145
|
+
|
|
146
|
+
发送 `/hello`
|
|
147
|
+
|
|
148
|
+
机器人回复:`你好,{用户名}!`
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
发送 `/ping`
|
|
153
|
+
|
|
154
|
+
机器人回复:`Pong!机器人运行正常。`
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
**运行方式**
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
epsdk run main.py
|
|
162
|
+
# 或开发模式
|
|
163
|
+
epsdk run main.py --reload
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
</td>
|
|
167
|
+
</tr>
|
|
168
|
+
</table>
|
|
169
|
+
|
|
170
|
+
更多详细说明请参阅:
|
|
171
|
+
- [快速开始指南](docs/zh-CN/quick-start.md)
|
|
172
|
+
- [入门指南](docs/zh-CN/getting-started/)
|
|
173
|
+
|
|
174
|
+
## 应用场景
|
|
175
|
+
|
|
176
|
+
- **多平台机器人** - 在多个平台部署相同功能的机器人
|
|
177
|
+
- **聊天助手** - 接入 AI 聊天模块,实现娱乐和交互
|
|
178
|
+
- **自动化工具** - 消息通知、任务管理、数据收集
|
|
179
|
+
- **消息转发** - 跨平台消息同步和转发
|
|
180
|
+
|
|
181
|
+
## 文档资源
|
|
182
|
+
|
|
183
|
+
| 简体中文 | English | 繁體中文 |
|
|
184
|
+
|----------------|----------------|----------------|
|
|
185
|
+
| [文档入口](docs/zh-CN/README.md) | [Documentation](docs/en/README.md) | [文檔入口](docs/zh-TW/README.md) |
|
|
186
|
+
|
|
187
|
+
## 外部资源
|
|
188
|
+
|
|
189
|
+
| 平台 | 主站点 | 备用站点 |
|
|
190
|
+
|------|--------|---------|
|
|
191
|
+
| 文档 | [erisdev.com](https://www.erisdev.com/#docs) | [Cloudflare](https://erispulse.pages.dev/#docs) • [GitHub](https://erispulse.github.io/#docs) • [Netlify](https://erispulse.netlify.app/#docs) |
|
|
192
|
+
| 模块市场 | [erisdev.com](https://www.erisdev.com/#market) | [Cloudflare](https://erispulse.pages.dev/#market) • [GitHub](https://erispulse.github.io/#market) • [Netlify](https://erispulse.netlify.app/#market) |
|
|
193
|
+
|
|
194
|
+
## 贡献指南
|
|
195
|
+
|
|
196
|
+
ErisPulse 项目的健全性还需要您的一份力!我们欢迎各种形式的贡献,包括但不限于:
|
|
197
|
+
|
|
198
|
+
1. **报告问题**
|
|
199
|
+
在 [GitHub Issues](https://github.com/ErisPulse/ErisPulse/issues) 提交 bug 报告
|
|
200
|
+
|
|
201
|
+
2. **功能请求**
|
|
202
|
+
通过 [社区讨论](https://github.com/ErisPulse/ErisPulse/discussions) 提出新想法
|
|
203
|
+
|
|
204
|
+
3. **代码贡献**
|
|
205
|
+
提交 Pull Request 前请阅读我们的 [代码风格](docs/zh-CN/styleguide/) 以及 [贡献指南](CONTRIBUTING.md)
|
|
206
|
+
|
|
207
|
+
4. **文档改进**
|
|
208
|
+
帮助完善文档和示例代码
|
|
209
|
+
|
|
210
|
+
[加入社区讨论](https://github.com/ErisPulse/ErisPulse/discussions)
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## 致谢
|
|
215
|
+
|
|
216
|
+
- 本项目部分代码基于 [sdkFrame](https://github.com/runoneall/sdkFrame)
|
|
217
|
+
- 核心适配器标准化层基于 [OneBot12 规范](https://12.onebot.dev/)
|
|
218
|
+
- 感谢所有为开源社区做出贡献的开发者和作者
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ErisPulse"
|
|
7
|
-
version = "2.4.
|
|
7
|
+
version = "2.4.2"
|
|
8
8
|
description = "ErisPulse 是一个模块化、可扩展的异步 Python SDK 框架,主要用于构建高效、可维护的机器人应用程序。"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -66,6 +66,8 @@ test = [
|
|
|
66
66
|
"pytest-asyncio>=0.21.0",
|
|
67
67
|
"pytest-xdist>=3.0.0",
|
|
68
68
|
"pytest-mock>=3.10.0",
|
|
69
|
+
"pytest-benchmark>=4.0.0",
|
|
70
|
+
"httpx>=0.24.0",
|
|
69
71
|
]
|
|
70
72
|
dev = [
|
|
71
73
|
"pytest>=7.0.0",
|
|
@@ -73,6 +75,8 @@ dev = [
|
|
|
73
75
|
"pytest-asyncio>=0.21.0",
|
|
74
76
|
"pytest-xdist>=3.0.0",
|
|
75
77
|
"pytest-mock>=3.10.0",
|
|
78
|
+
"pytest-benchmark>=4.0.0",
|
|
79
|
+
"httpx>=0.24.0",
|
|
76
80
|
"pyclean>=3.6.0",
|
|
77
81
|
"ruff>=0.1.7",
|
|
78
82
|
]
|