Skip to main content

Entari plugin for running Satori Server

Project description

entari-plugin-server

为 Entari 提供 Satori 服务器支持,基于此为 Entari 提供 ASGI 服务、适配器连接等功能

示例

plugins:
  server:
    adapters:
      - $path: package.module:AdapterClass
        # Following are adapter's configuration
        key1: value1
        key2: value2
    host: 127.0.0.1
    port: 5140

官方适配器

Satori适配器

安装

pip install satori-python-adapter-satori

路径($path)@satori

配置

  • host: 对接的 Satori Server 的地址,默认为localhost
  • port: 对接的 Satori Server 的端口,默认为5140
  • path: 对接的 Satori Server 的路径,默认为""
  • token: 对接的 Satori Server 的访问令牌,默认为空
  • post_update: 是否接管资源上传接口,默认为False

OneBot V11适配器

安装

pip install satori-python-adapter-onebot11

路径($path)@onebot11.forward@onebot11.reverse (正向或反向适配器)

配置(正向)

  • endpoint: 连接 OneBot V11协议端的路径
  • access_token: OneBot V11协议的访问令牌, 默认为空

配置(反向)

  • prefix: 反向适配器于 Server 的路径前缀, 默认为 /
  • path: 反向适配器于 Server 的路径, 默认为 onebot/v11
  • endpoint: 反向适配器于 Server 的路径端点, 默认为 ws (完整路径即为 /onebot/v11/ws)
  • access_token: 反向适配器的访问令牌, 默认为空

Console适配器

安装

pip install satori-python-adapter-console

路径($path)@console

配置:参考 ConsoleSetting

社区适配器

Lagrange适配器

安装

pip install nekobox

路径($path)nekobox.main

配置

  • uin: 登录的QQ号
  • sign_url: 签名服务器的URL
  • protocol: 使用的协议类型,默认为linux,可选值为 linuxmacos, windows, remote
  • log_level: 日志级别,默认为INFO
  • use_png: 登录二维码是否保存为PNG图片,默认为False

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

entari_plugin_server-0.3.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

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

entari_plugin_server-0.3.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file entari_plugin_server-0.3.0.tar.gz.

File metadata

  • Download URL: entari_plugin_server-0.3.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.25.6 CPython/3.11.7 Windows/10

File hashes

Hashes for entari_plugin_server-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4dffa4e6ede7b03792f6d4311f4d68ec4cdd4384cab309660c36016238775469
MD5 cd4a51c1e066ef725f959294e9f7d3be
BLAKE2b-256 3883ebeb3d4f19de9b75df77b949e9b95a6246d08d44fe35dc514271cac6344d

See more details on using hashes here.

File details

Details for the file entari_plugin_server-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for entari_plugin_server-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a79142763460f4fa336bf58e3fcf2958afbfd099a411886bbb87c15905be27be
MD5 e484b1d720767782c256578a99b7e9cb
BLAKE2b-256 b76f9c4e204aa83ebb9b67676ceb4f2743d90e70f48097347d88f331e95fcd6c

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