Skip to main content

轻量化的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

需要开启onebot实现的正向ws端口3001,access_token留空不要设置。

示例

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()

文档

Eridanus文档

Project details


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.8.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eridanus_dep-0.0.8-py3-none-any.whl (37.6 kB view details)

Uploaded Python 3

File details

Details for the file eridanus_dep-0.0.8.tar.gz.

File metadata

  • Download URL: eridanus_dep-0.0.8.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.0

File hashes

Hashes for eridanus_dep-0.0.8.tar.gz
Algorithm Hash digest
SHA256 ef47db008dee693f4833f4f63f19537d1ad0049f29bd2c4bf6386f7a7a6a2398
MD5 ac8eb96c7acea2e5bf2ec0519e2ebb2b
BLAKE2b-256 9ebd132688ba1482e57f9cb9bf188d6f87d4743e1e88cf705e1278f76b2bf1a5

See more details on using hashes here.

File details

Details for the file eridanus_dep-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: eridanus_dep-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 37.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.0

File hashes

Hashes for eridanus_dep-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 f3cca20266dfa36bc337e358bb520457c57e5971550360caafdb812f5f61ce4b
MD5 26432f7d3c56f8a53d105e1a63ec9d28
BLAKE2b-256 e8a00477fe333e9ade5052db37f7d73ee5c0eda41ee11422f6dc262cbdf87365

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page