轻量化的onebotv11sdk
Project description
介绍
eridanus-dep是一个轻量化的onebot v11 sdk。
eridanus-dep是Eridanus的依赖包,它是Eridanus的核心库,提供了一系列的工具和模块,可以帮助开发者快速开发自己的onebot应用。
Eridanus是基于eridanus-dep开发的onebot应用,你可以在Eridanus中找到很多有用的模块和工具,如事件处理、消息处理、插件管理、数据库连接等。
由于Eridanus是基于eridanus-dep开发的,所以你可以通过参考Eridanus的源码来学习eridanus-dep的使用方法。
安装
pip install eridanus-dep
或
pip install --upgrade eridanus-dep
示例
from Eridanus.adapters.websocket_adapter import WebSocketBot
from Eridanus.event.events import GroupMessageEvent
bot = WebSocketBot('ws://127.0.0.1:3001')
#bot = WebSocketBot('ws://127.0.0.1:3001',blocked_loggers=["DEBUG", "INFO_MSG"]) #像这样屏蔽指定logger
@bot.on(GroupMessageEvent)
async def _(event: GroupMessageEvent):
print(event)
await bot.send(event, '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.4.tar.gz
(33.1 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.4.tar.gz.
File metadata
- Download URL: eridanus_dep-0.0.4.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6376b391a94cce6078b1d69520a7f090a7603436941dc7d8e507013b24a920e6
|
|
| MD5 |
c093f4e885399923dcaa725a1b37580f
|
|
| BLAKE2b-256 |
bd310b0248ccc27c5efa8fe5ae4928ccd2b36e1ad0bdf7440f02df40c085ca1f
|
File details
Details for the file eridanus_dep-0.0.4-py3-none-any.whl.
File metadata
- Download URL: eridanus_dep-0.0.4-py3-none-any.whl
- Upload date:
- Size: 37.4 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 |
71c860c89166968c7c25bc07230610a5f4b8e541866036c9e37908ed3e15acbf
|
|
| MD5 |
cd6308f4f4cd68a6089c04e10ba8c144
|
|
| BLAKE2b-256 |
5248a678192fef7b4bdffa23cee729e729b2c95c761ea77374e3f65df3397669
|