轻量化的onebotv11sdk
Project description
介绍
eridanus-dep是Eridanus的依赖包,它是Eridanus的核心库,提供了一系列的工具和模块,可以帮助开发者快速开发自己的onebot应用。
Eridanus是基于eridanus-dep开发的onebot应用,你可以在Eridanus中找到很多有用的模块和工具,如事件处理、消息处理、插件管理、数据库连接等。
由于Eridanus是基于eridanus-dep开发的,所以你可以通过参考Eridanus的源码来学习eridanus-dep的使用方法。
安装
pip install eridanus-dep
示例
from Eridanus.adapters.websocket_adapter import WebSocketBot
from Eridanus.event.events import GroupMessageEvent
bot = WebSocketBot('ws://127.0.0.1:3001')
@bot.on(GroupMessageEvent)
async def _(event: GroupMessageEvent):
await bot.send(event, 'Hello, world!') #向消息来源发送 Hello, world!
bot.run()
文档
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
eridanus_dep-0.0.1.tar.gz
(30.4 kB
view details)
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 eridanus_dep-0.0.1.tar.gz.
File metadata
- Download URL: eridanus_dep-0.0.1.tar.gz
- Upload date:
- Size: 30.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e349083b84b5051c27e6751b40a6cb95ae5e3b133236bcc0c7737545722a9f79
|
|
| MD5 |
fb619708d25bf97f0ec2787c7dd1b777
|
|
| BLAKE2b-256 |
23a4e43bdc164bbb177a14bd53d83c9087ec2a15b8a1ffcdc3f72e96c92facf0
|
File details
Details for the file eridanus_dep-0.0.1-py3-none-any.whl.
File metadata
- Download URL: eridanus_dep-0.0.1-py3-none-any.whl
- Upload date:
- Size: 34.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32021b7aacab0d655186503155affb28b80a94888f536fb54ffc91459616f82e
|
|
| MD5 |
f6d198fe0bb6409077061a44393e12d9
|
|
| BLAKE2b-256 |
d0d002f99baf22013c8e70a0d62ab9ea9b1961a6a537de3f00867a5be4c01990
|